PHP type coercion will haunt your dreams
T
type_safety_fan +3400
In PHP: "0" == false, "" == false, BUT "0" != "". The transitive property called â it wants its dignity back.
P
php_apologist +200
Just use === everywhere! Problem solved!
T
type_safety_fan +5600
"Just remember to always use the special operator that does what the normal operator should do by default" is not the flex you think it is.
12,400 pts Source: manual
View original →