On 04/13/2012 04:01 AM, Gustavo Lopes wrote:

Currently, when two strings are compared, PHP tries to do a numerical 
comparison first. Therefore:

var_dump("010" == "10"); //true

I'm replying to this old mail now, because of the current discussion
about hex numbers.  The phrase "numerical comparison" caught my eye
because it seems in-precise, for example:

var_dump(010 == 10); // false

Don't forget octal.

Chris

--
christopher.jo...@oracle.com
http://twitter.com/#!/ghrd

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to