PHP - Conditional Statements
What will be the output of this PHP code?
<?php
$x = 10;
if ($x > 5) {
if ($x < 15) {
echo 'Inside nested if';
} else {
echo 'Inside else';
}
} else {
echo 'Outside if';
}
?>What will be the output of this PHP code?
<?php
$x = 10;
if ($x > 5) {
if ($x < 15) {
echo 'Inside nested if';
} else {
echo 'Inside else';
}
} else {
echo 'Outside if';
}
?>15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions