I\'ve noticed someone using the PHP operator ===
which I can\'t make sense out of. I\'ve tried it with a function, and it corresponds in crazy ways.
Wha
$x == $y
is TRUE if the value of the $x and $y are same:
$x = 1; //int type
$y = "1"; //string type
if ($x == $y) {
// This will execute
}
$x === $y
TRUE if the value of the $x and $y are same and type of $x and $y are same:
$x = 1; //int type
$y = "1"; //string type
if ($x === $y) {
// This will not execute
}