时间:2021-07-01 10:21:17 帮助过:14人阅读
@$judge=$_GET["speed"]; if(@$keyboard=$_GET["keyboard"]){ $keyboardfinal=100; } if(@$judge==1){ if($keyboard<40 && $keyboard>0){ @$keyboardfinal=50; } } if(@$judge==2){ if(@$keyboard<50&& $keyboard>0){ $keyboardfinal=50; } } if(@$judge==3 && (@$keyboard<170 && @$keyboard>0)){ $keyboardfinal=50; }
$judge = 1; $keyboard = 35; $keyboardfinal = null; switch($judge){ case 1: if($keyboard<40 && $keyboard>0) $keyboardfinal=50; break; case 2: if($keyboard<50&& $keyboard>0) $keyboardfinal=50; break; case 3 && ($keyboard<170 && $keyboard>0): $keyboardfinal=50; break; } echo "keyboardfinal-->>".$keyboardfinal; #50
------解决方案--------------------