php short if syntax code example
Example 1: php shorthand if
$is_admin = ($user['permissions'] == 'admin') ? true : false;
Example 2: php if short form
<?php echo ($qte > 0) ? $qte : 0; ?>
$is_admin = ($user['permissions'] == 'admin') ? true : false;
<?php echo ($qte > 0) ? $qte : 0; ?>