<?php $names = array('Mike', 'Chris', 'Jane', 'Bob'); foreach($names as $name) { echo " " . $name . ""; } ?> 怎样根据状态查询数组,比如Bob状态是N。显示为灰色,其他是黑色。谢谢。