ternarary php code example
Example 1: php ternary operator
(Condition) ? (Statement1) : (Statement2);
Example 2: turnery expression php
(condition) ? /* value to return if condition is true */
: /* value to return if condition is false */ ;
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];