The difference between operators (== and ===)
//if we use == sign it doesn't check the type of data apart from === sign which check also type of data
<?php
$a = 34;
$b = 34;
if($a == $b) {
echo "Equal";
}
else{
echo "Not Equal";
}
//answer will be "Equal" true
if('34' == 34){
echo "Equal";
}
else{
echo "Not Equal";
}
//answer will be "Equal"
if('34' == 34){
echo "Equal";
}
else{
echo "Not Equal";
}
//answer will be "Not Equal" because types of variables isn't equal to each others
?>