PHP - Conditional Statements
What will be the output of the following PHP code?
<?php
$x = 5;
$y = 8;
if ($x > 3) {
if ($y < 10) {
echo "A";
} else {
echo "B";
}
} else {
echo "C";
}
?>What will be the output of the following PHP code?
<?php
$x = 5;
$y = 8;
if ($x > 3) {
if ($y < 10) {
echo "A";
} else {
echo "B";
}
} else {
echo "C";
}
?>if block runs.if block runs and prints "A".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions