what does === mean in php?

hi guys, can you tell me what the differnece between == and === in php is?

thanks
djsoltanAsked:
Who is Participating?
 
MasonWolfCommented:
It's a strong test of equality. Unlike == which tests if two values are the same, === also tests whether the types being compared are the same.

Hence, a statement such as
if($var==true)

will evaluate true if $var = 1, whereas
if($var===true)

will evaluate false if $var = 1
0
 
gamebitsCommented:
$a === $b Identical TRUE if $a is equal to $b, and they are of the same type. (introduced in PHP 4)  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.