echo on ternary php expression code example
Example 1: php if short form
<?php echo ($qte > 0) ? $qte : 0; ?>
Example 2: echo ternary php
echo (isset($options['footer_txt_color'])) ? $options['footer_txt_color'] : '#ffffff';
<?php echo ($qte > 0) ? $qte : 0; ?>
echo (isset($options['footer_txt_color'])) ? $options['footer_txt_color'] : '#ffffff';