1、if条件语句
If(expr)
echo TRUE
else
echo FALSE
if(expr){
echo TRUE
}else{
echo FALSE
}
if(expr){
echo TRUE
}
elseif(expr){
echo CON
}else{
echo FALSE
}
1、switch条件语句
switch($i){
case 0:
echo “输出0”;
break;
case 1:
echo “输出1”;
break;
case 2:
echo “输出2”;
break;
default: echo “sssssss”;
}