> After all, most programmers don't expect: <?php 0 == "string"; ?> to be true.
nobody would expect that
nobody would expect that
Note that PHP also has a JavaScript-style triple-equals comparison, which does not attempt type conversion and does not exhibit this bizarre behaviour.
This occurs if PHP thinks both strings could be numbers in scientific notation. "0e123" == "00e45"