Source Code:
(back to article)
<?php $age = 20; $can_drink = $age >= 21 ? true : false; if ($can_drink) { echo "You can legally drink alcohol."; } else { echo "You cannot legally drink alcohol."; }
Result:
Report an issue