"10","powerFlag" => "1","powerCredit" => "不良好")">
时间:2021-07-01 10:21:17 帮助过:2人阅读
array("oldyear" => "10","powerFlag" => "1","powerCredit" => "不良好"),1=>array("oldyear" => "30","powerFlag" => "0","powerCredit" => "良好"),2=>array("oldyear" => "80","powerFlag" => "1","powerCredit" => "良好"));$find=false;foreach($array as $row){ if($row["oldyear"]>60||$row["oldyear"]<18){ $find = true;//老年人:5位权利人只要有任何一个选择了老年人或未成年人(<18为未成年,>60为老年人),自动显示失败 } if($row["powerFlag"]=='0'){ $find = true;//到场签字:5位权利人中只要有任何一个选择了不能到场签字(能到场为1,不能到场为0),自动显示失败 } if($row["powerCredit"]=='不良好'){ $find = true;//信用情况:5位权利人中任何一个没有选择信用情况为良好 }}if($find===false){ echo '2.0';//自动显示为2.0}else{ //其他}?>