short hand php statement code example
Example 1: php shorthand if
$is_admin = ($user['permissions'] == 'admin') ? true : false;
Example 2: php ternary shorthand
$y = $x ? "true" : "false";
$is_admin = ($user['permissions'] == 'admin') ? true : false;
$y = $x ? "true" : "false";