Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何显示'NOTHING'为字符串?
'NOTHING'
我需要显示它而不是显示空字符串值作为结果。
else if ($colorByChance == 5) { $color='NOTHING'; }
只是先检查一下。
if(empty($color)) { $color='nothing'; }
或者也许(如果它甚至没有设置)
if(!isset($color)) { $color='nothing'; }