开发者

is NUMBER <= FALSE? [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜