PHP - Conditional Statements
What will this PHP code output?
$age = 20;
if ($age >= 18) {
echo 'Adult';
} else {
echo 'Minor';
}
$age = 20;
if ($age >= 18) {
echo 'Adult';
} else {
echo 'Minor';
}
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions