//定义值的精度$height = "中";//根据精度返回常量名,将常量变成了一个可变的常量if($height == "中"){ $p = "PI1";}else if($height == "低"){ $p = "PI2";} 查看完整描述