Answers for "echo on ternary php expression"

PHP
0

echo ternary php

echo (isset($options['footer_txt_color'])) ? $options['footer_txt_color'] : '#ffffff';
Posted by: Guest on November-04-2020
2

php if short form

<?php echo ($qte > 0) ? $qte : 0; ?>
Posted by: Guest on November-14-2020

Browse Popular Code Answers by Language