dsc862009 2011-07-29 10:24
浏览 7
已采纳

如何在PHP中更正此开关案例?

Please let me know how can I complete this switch code:

switch ($urlcomecatid) {
case "50":
case "51":
case "52":
case "109":
case "110":

do nothing and exit from switch


otherwise:

header ("Location:http://www.mysite.com/tech/tech.php");
break;
} 
  • 写回答

3条回答 默认 最新

  • dsklzerpx64815631 2011-07-29 10:34
    关注
    switch ($urlcomecatid) {
        case "50":
        case "51":
        case "52":
        case "109":
        case "110":
            //do nothing
            break;
        default:
            header ("Location:http://www.mysite.com/tech/tech.php"); exit();
            break;
    } 
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)
编辑
预览

报告相同问题?