开发者

is NUMBER <= FALSE? [closed]

开发者 https://www.devze.com 2023-03-03 13:23 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rh开发者_开发问答etorical andcannot be reasonably answered in its current form.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rh开发者_开发问答etorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消