日期:2014-05-17 浏览次数:20547 次
@$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
------解决方案--------------------