PHP - Operators
What is the logical error in this PHP code snippet?
$num = 7;
if ($num == 10) {
echo 'Ten';
} else {
echo 'Not Ten';
}$num = 7;
if ($num == 10) {
echo 'Ten';
} else {
echo 'Not Ten';
}== which is the correct comparison operator.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions