/ Published in: PHP
Shorthand for Ternary Operator in PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Shorthand for Ternary Operator in PHP $color = $_GET['color']?:'blue'; Ref: https://techfiddler.wordpress.com/2015/03/06/shorthand-for-ternary-operator-in-php/
URL: https://techfiddler.wordpress.com/2015/03/06/shorthand-for-ternary-operator-in-php/