<分区>
请帮我改正这段代码,我想把 if 放在 switch 里面:
switch ($urlcomecatid) {
if ($urlcomeparentid == 1 || $urlcomeparentid == 2 || $urlcomeparentid == 3)
break;
case "50":
case "51":
case "52":
case "109":
case "110":
//do nothing and exit from switch
break;
default:
header ("Location:http://www.example.com/tech/tech.php"); exit();
break;
}