if simple php code example
Example 1: php shorthand if
$is_admin = ($user['permissions'] == 'admin') ? true : false;
Example 2: php if simple
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];
$is_admin = ($user['permissions'] == 'admin') ? true : false;
echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];