is NUMBER <= FALSE? [closed]
in a PHP if statement. is a number greater than or equal to false?
For example:
if(5743 <= FALSE) {
echo 'it is true!';
}
else {
echo 'it is false!';
}
What would be the output?
FALSE
see demo: http://codepad.org/QLDWMMG7
5743 <= FALSE
is equivalent to:
(bool)5743 <= FALSE
is equivalent to:
TRUE <= FALSE
is equivalent to:
FALSE
See the reference table from the manual here.
精彩评论