Possible Duplicates:
How do the equality (== double equals) and identity (=== triple equals) comparison operators differ?
Reference – What does this symbol mean in PHP?
php not equal to != and !==
What are the !== and === operators in this code snippet?
if ( $a !== null ) // do something
if ( $b === $a ) // do something
They are strict type comparison operators. They not only check the value but also the type.
Consider a situation when you compare numbers or strings:
but
and
This applies to objects as well as arrays.
So in above cases, you have to make sensible choice whether to use
==or===It is good idea to use
===when you are sure about the type as wellMore Info: