<?PHP $a = 0; if(in_array($a, array('index', 'post'))){ echo "true"; }else{ echo "false"; } ?> 查看完整描述