#6 - Equal and Identical Operators
Equal operator == returns true if the variables being compared have the same values. The identical operator === returns true if the variable has the same values and same data types.
xxxxxxxxxx
11
<?php
$a = 123;
$b = "123";
//Output: false
echo $a === $b;
//Output: true
echo $a == $b;
?>
OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment