3 ms·
I believe your criticism is equivalent to the old "macs only have one mouse button" argument. Sure, false==0 and "false"==0 both evaluate to true, but is that r
by nimbix 17y ago
I believe your criticism is equivalent to the old "macs only have one mouse button" argument. Sure, false==0 and "false"==0 both evaluate to true, but is that really a bad thing? It is well known and well documented behavior. I would even argue that this is an important feature of PHP. And if you want strict comparison, there's still the === operator, just like in JavaScript.