PHP - Conditional Statements
What is the output of this PHP code?
$age = 20;
$result = ($age >= 18) ? 'Adult' : 'Minor';
echo $result;
$age = 20;
$result = ($age >= 18) ? 'Adult' : 'Minor';
echo $result;
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions