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
a43b240
0.1+0.2 != 0.3
javascript has this one too, it might be the case for all web
It evaluates to true in almost all programming languages (ones that use IEEE 754 standard for floating point arithmatic) due to floating point precision.
commit a43b240