PHP - Conditional Statements
What will be the output of this PHP code?
<?php
$age = 20;
if ($age > 60) {
echo "Senior";
} elseif ($age >= 18) {
echo "Adult";
} else {
echo "Minor";
}What will be the output of this PHP code?
<?php
$age = 20;
if ($age > 60) {
echo "Senior";
} elseif ($age >= 18) {
echo "Adult";
} else {
echo "Minor";
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions