Any way to break if statement in PHP?

前端 未结 20 2091
無奈伤痛
無奈伤痛 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:14

    You could use a do-while(false):

        
    

    as described in http://php.net/manual/en/control-structures.if.php#90073

提交回复
热议问题