php流程控制之多向条件分支结构
1、if(条件){
}else if (条件2){
}else if (条件3){
}else if (条件4){
}.....
else{
}

2、$score = ?;
if ( $score<= 60){
echo "good";
} else if ($score <=70){
echo"良";
}
else if ( $score <=80){
echo"好";}
else if ($score <=90){
echo"best";}
else{ echo"有雾";}

3、多向分支条件结构案例

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:120
阅读量:101
阅读量:39
阅读量:64
阅读量:56