php if short form
snippet in php

php if short form

user580

<?php echo ($qte > 0) ? $qte : 0; ?>

shorthand if php

user6370

$is_admin = ($user['permissions'] == 'admin') ? true : false;