What does “===” mean? [duplicate]
$a === $b (Identical) TRUE if $a is equal to $b, and they are of the same type. (introduced in PHP 4) PHP Docs
$a === $b (Identical) TRUE if $a is equal to $b, and they are of the same type. (introduced in PHP 4) PHP Docs
Take a look here: http://longgoldenears.blogspot.com/2007/09/triple-equals-in-javascript.html The 3 equal signs mean “equality without type coercion”. Using the triple equals, the values must be equal in type as well. 0 == false // true 0 === false // false, because they are of a different type 1 == “1” // true, automatic type conversion for value only … Read more
Which equals operator (== vs ===) should be used in JavaScript comparisons?