Hacker News new | ask | show | jobs
by mrunkel 476 days ago
I can confirm that PHP doesn't have this problem.

<?php

if ("null" == null) { echo "true"; } else { echo "false"; }

prints "false"

1 comments

Is 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)
I tested "all supported" but this is explicitly for 5:

https://3v4l.org/cFc5I#v5.4.45