So there\'s this page on the php site which shows the result of comparing different values:
http://php.net/manual/en/types.comparisons.php
This is a helpful refe
There is no particular logic, but you can figure out some patterns.
null
, false
, 0
, empty string and string '0'
) evaluate to false
strict
parameterreturn ($something);
implicitly converts $something
to string if it is not scalar