ifi variable is true then php short code example
Example 1: shorthand if php
$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";