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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -