Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Zergling_man (zergling_man@sacred.harpy.faith)'s status on Tuesday, 01-Oct-2024 16:12:33 JSTZergling_man @p @goo @MisterRogersSnapped @dcc >Zero languages should be allowed to do this.
>For a more type-safe ==, we have ===. For a more type-safe <, we have... nothing. "123" < "0124", always, no matter what you do. Casting doesn't help, either.
>== converts to numbers when possible (123 == "123foo"� although "123" != "123foo"), which means it converts to floats when possible. So large hex strings (like, say, password hashes) may occasionally compare true when they're not. Even JavaScript doesn't do this.
- https://thelo.ca/php.txt (mostly taken from eev.ee's post and some other, phpsadness or such)