switch语句的写法:
$type = 1;
switch ($type) {
case 1:
echo "是1";
break;
case 2:
echo "是2";
break;
default:
echo "都不是";
break;
}
switch语句的写法:
$type = 1;
switch ($type) {
case 1:
echo "是1";
break;
case 2:
echo "是2";
break;
default:
echo "都不是";
break;
}