PHP - Operators
Find the error in this PHP code snippet:
$x = 5;
if ($x = '5') {
echo 'Equal';
} else {
echo 'Not equal';
}
$x = 5;
if ($x = '5') {
echo 'Equal';
} else {
echo 'Not equal';
}
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions