PHP - Operators
Identify the error in the following PHP code using the spaceship operator:
$a = 7;
$b = 3;
if ($a <=> $b) {
echo 'a is greater';
}
$a = 7;
$b = 3;
if ($a <=> $b) {
echo 'a is greater';
}
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions