I've always done this:
if ($foo !== $bar)
But I realized that
if ($foo != $bar) is correct too.
= still works and has always worked for me, but whenever I search PHP operators I find no information on double
=, so I assume I've always have done this wrong, but it works anyway. Should I change all my
!= just for the sake of it?