Monday, November 16, 2009

'0x00' == '0'

<?
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.

No comments:

Post a Comment