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