<?
var_dump('0x00' == '0');
var_dump('0x0a' == '10');
will print out:
bool(true)
bool(true)
To emphasize: This is a string-string comparison. And the strings are anything but equal.
Moments of joy with PHP - (and other languages (but mostly PHP :D))
No comments:
Post a Comment