What does "===" mean?
Solution 1:
$a === $b (Identical)
TRUE if
$a
is equal to$b
, and they are of the same type. (introduced in PHP 4)
PHP Docs
Solution 2:
http://www.php.net/ternary
$a == $b Equal TRUE if $a is equal to $b, except for (True == -1) which is still True.
$a === $b Identical TRUE if $a is equal to $b, and they are of the same type.
> "5" == 5;
True
> "5" === 5;
False
Solution 3:
You can read here, short summary:
$a == $b Equal TRUE if $a is equal to $b after type juggling.
$a === $b Identical TRUE if $a is equal to $b, and they are of the same type.