Any way to break if statement in PHP?

前端 未结 20 2034
無奈伤痛
無奈伤痛 2020-12-02 05:05

Is there any command in PHP to stop executing the current or parent if statement, same as break or break(1) for switch/

20条回答
  •  不思量自难忘°
    2020-12-02 05:30

    Just move the code that is not supposed to be executed to else/elseif branch. I don't really see why would you want to do what you're trying to do.

提交回复
热议问题