3 ms·
Wait, is GP saying that IS true in php?!?!
by xerophyte12932 10y ago
Wait, is GP saying that IS true in php?!?!
- s_q_b 10y agoYeah, go check in a sandbox.
- DCoder 10y agoIt gets worse: https://3v4l.org/Slvpp https://3v4l.org/Slvpp Note that PHP also has a JavaScript-style triple-equals comparison, which does not attempt type conversion and does not exhibit this bizarre behaviour.
- Terr_ 10y agoMy favorite is that two obviously different hexadecimal values in strings (e.g. checking password hashes) can be "equal" with the weaker == comparison. This occurs if PHP thinks both strings could be numbers in scientific notation. "0e123" == "00e45"