我想在三元运算符中编写以下代码。我尝试了很多方法,但是根本没有用。
<?php if(isset($options['footer_txt_color'])) { echo $options['footer_txt_color']; } else { echo "#ffffff"; } ?>
php ternary operator-keyword
operator-keyword ×1
php ×1
ternary ×1