Consider
$var1== $var2 : This means var1 and var2 must be equal in values
$var1=10;
$var2=10;
so $var1==$var2 is true but if $var2=9; then the above statement will be false
now
$var1===$var2
this will check values and their type i.e both should be integer and value should be 10 only then it will return true.
$var2='dummy';
$var1 === $var2 it will return false.
Copyright © 2026 eLLeNow.com All Rights Reserved.