header('Location: '.'flow.php');
echo "";
flow.php填写的是URL的地址。
一个案例输出判断
<!DOCTYPE html>
FLOW.PHP
<?php
/
function getLevel($score){
if($score>90){
return '优秀';
}else if($score>80){
return '良好';
}else if($score>70){
return '好';
}else if($score>60){
return '可以';
}else{
return '差';
}
}/
function getLevel($score){
switch(intval($score/10)){
case 10:
return '优秀';
case 9:
return '良好';
case 8:
return '好';
case 7:
return '可以';
default:
return '差';
}
/*$result ="差";
switch($score/10){
case 10:
case 9:
$result ="优秀";
break;
case 8:
$result ="良好";
break;
case 7:
$result ="好";
break;
case 6:
$result ="可以";
break;
default:
$result ="差";
break;
}
return $result;*/
}
echo getLevel(91);
?>