PHP Expression: Why var_dump(false < -1) = true? -
can please explain how php execute code , result true
?
var_dump( (false < -1) ); //bool(true)
false boolean type, , php maunal:
-1 considered true, other non-zero (whether negative or positive) number!
resource: http://php.net/bool
Comments
Post a Comment