Possible Duplicate:
php == vs === operator
Is there a difference between !== and != in PHP?
In PHP, the condition of the if command contains operator === and !==.
I never use them. So I wonder when will we actually need to call them?
E.g.
if (FALSE != someMethod() ) {
}
if (FALSE !== someMethod() ) {
}
What may go wrong with the 1st if?
If you need to know the difference between two of these, you need ===.
http://php.net/manual/en/function.strpos.php
Without a === you won’t know if ‘apple’ has ‘a’ in the first position or if it doesn’t exist.