html if statement in php shorthand code example Example: php shorthand if $is_admin = ($user['permissions'] == 'admin') ? true : false;