Answers for "echo a ternary if php"

PHP
0

if else if ternary php

var name = (variable === 1) ? 'foo' : ((variable === 2) ? 'bar' : 'baz');
Posted by: Guest on September-11-2020
0

echo ternary php

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

Browse Popular Code Answers by Language