<?php
$age = 13;
echo $answer = ($age >= 12 && $age < 19 ? 'You are a teenager' : ($age >= 19 && $age < 30 ? 'You are a young adult' : 'You are neither a teenager not a young adult'));
?>
7
solved PHP Conditional operator
<?php
$age = 13;
echo $answer = ($age >= 12 && $age < 19 ? 'You are a teenager' : ($age >= 19 && $age < 30 ? 'You are a young adult' : 'You are neither a teenager not a young adult'));
?>
7
solved PHP Conditional operator