Possible Duplicate:
php == vs === operator
I understand the difference between ===
, !==
vs. ==
, !=
in PHP but I always find myself favouring ===
and !==
but I have no real reason why. In the documentation on PHP.net, there are often 'warnings' saying that you should use ===
to check the return value for some built-in functions. So my question is why should I use the one set of operators over another?
Many thanks :).