Stefan Walk wrote:
And you'll quickly see that the "cast to string before comparision" is a bad idea, because:
$ php -dprecision=1 -r 'var_dump((string)1.4 == (string)1.1);'
bool(true)

Having display settings affect comparisions seems like a really bad idea to me ;)

Yup, it would be a fatal flaw in the language if that ever came to be.

-Rasmus

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

Reply via email to