What’s your favorite obscure PHP fact?
Mine is that == can make "0" == "0e123456" evaluate to true because PHP treats both as numbers in a loose comparison. 😂
Commit
ecf6387
0.1+0.2 != 0.3
javascript has this one too, it might be the case for all web
commit ecf6387
It evaluates to true in almost all programming languages (ones that use IEEE 754 standard for floating point arithmatic) due to floating point precision.