What does "===" mean? What does "===" mean? php php

What does "===" mean?


$a === $b     (Identical)      

TRUE if $a is equal to $b, and they are of the same type. (introduced in PHP 4)

PHP Docs


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


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.