$is_admin = ($user['permissions'] == 'admin' ? true : false); echo 'Welcome '.($user['is_logged_in'] ? $user['first_name'] : 'Guest').'!'; echo 'Your cart contains '.$num_items.' item'.($num_items != 1 ? 's' : '').'.'; echo 'Your cart contains '.$num_items.' item'.($num_items != 1 ? 's' : '').'.'; error_reporting($WEBSITE_IS_LIVE ? 0 : E_STRICT);