On 26/03/2019 21:54, Benjamin Morel wrote:
I almost had a heart attack after running this code. I knew that PHP had a
few quirks when comparing different types, but I had long taken for granted
that comparing 2 *strings *performed a byte-by-byte comparison.


You might want to have a stiff drink before reading through the examples in this RFC then: https://wiki.php.net/rfc/string_to_number_comparison

Regards,

--
Rowan Collins
[IMSoP]


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

Reply via email to