dilip
answered Jul 21 '21 00:00
== is used to check the value
=== is used to check the value and type also
so if
$x='1';
$y=1;
$x===y is give false return because both have same value but $x and $y is different type , $x have string value and $y have int value and === check the value and type also .
$x==y is give true return because both have same value and == only check value not type