Source Code:
(back to article)
<?php $age = 30; $can_vote = ($age >= 18) ? 'yes' : 'no'; echo "Can vote: " . $can_vote;
Result:
Report an issue