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