php if() 括号中为 真详解 $a =0; if($a){//0.00、'0.00' echo 1; }else{//如果$a 为空、false、null、0、'0',array()、''、 echo 2; }