Is there a shorter, cleaner way to write this?
<?php $a = ($a) ? $a : 'e开发者_高级运维mpty'; ?>
In php5.3
<?php $a = ($a) ?: 'empty'; ?>
Is there a shorter, cleaner way to write this?
<?php $a = ($a) ? $a : 'e开发者_高级运维mpty'; ?>
In php5.3
<?php $a = ($a) ?: 'empty'; ?>
精彩评论