PHP switch statement inside another switch statement

前端 未结 2 1708
忘了有多久
忘了有多久 2021-02-19 05:05

I have this situation where I have to check two GET variables. After checking the first one in one switch statement inside the statement, the second variable has to be checked i

2条回答
  •  逝去的感伤
    2021-02-19 05:45

    According to the PHP Documentation Examples, it is possible if the case block which contains the nested switch is enclose with braces.

    Follows the mentioned example.

    
    

提交回复
热议问题