7 ms·
I can confirm that PHP doesn't have this problem. <?php if ("null" == null) { echo "true"; } else { echo "false"; } prints "false"
by mrunkel 2y ago
I can confirm that PHP doesn't have this problem.
<?php
if ("null" == null) {
echo "true";
} else {
echo "false";
}
prints "false"
- hsbauauvhabzb 2y agoIs this php5 or a more recent version? That is hugely relevant when it comes to pho and something I should have mentioned in my original post (no idea if this specific thing would work in pho5, but there are other weird things)
- mrunkel 2y agoI tested "all supported" but this is explicitly for 5: https://3v4l.org/cFc5I#v5.4.45 https://3v4l.org/cFc5I#v5.4.45