if statement php short code example
Example 1: shorthand if php
$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; ?>