difference between shorthand if else and not in php code example
Example 1: php ternary shorthand
$y = $x ? "true" : "false";
Example 2: php if short form
<?php echo ($qte > 0) ? $qte : 0; ?>
$y = $x ? "true" : "false";
<?php echo ($qte > 0) ? $qte : 0; ?>