php echo ternary code example
Example 1: php ternary shorthand
$y = $x ? "true" : "false";
Example 2: echo ternary php
echo (isset($options['footer_txt_color'])) ? $options['footer_txt_color'] : '#ffffff';
$y = $x ? "true" : "false";
echo (isset($options['footer_txt_color'])) ? $options['footer_txt_color'] : '#ffffff';