以下 switch case 语句应该执行 case "january": 的值,但它正在执行 case 0: 的值,有人能告诉我为什么这样做吗?代码:
<?php
$a = "january";
switch ($a)
{
case 0:
case 3:
echo "The value is either 0 or 3";
break;
echo "0/2";
break;
case "january":
echo "january";
break;
case "march":
echo "The value is ";
break;
case 2:
echo "The value is 2";
break;
default:
echo "Here is ur default message";
break;
}
?>
顺便说一句,“游行”案件也是如此……?