Code has been added to clipboard!

Learn How to Use the Ternary Operator

Example
<?php
$weatherstr = ($temp < 20) ? 'spring' : 'summer';
?>