What is the “break/continue $var syntax” (will be removed in PHP 5.4)?

后端 未结 1 912
时光说笑
时光说笑 2021-01-03 18:58

I\'m looking at the alpha 1 news about PHP 5.4 and find some things that are removed.

In that list they talk about break/continue $var syntax.

相关标签:
1条回答
  • 2021-01-03 19:33

    I assume, that this one is meant

    break $c;
    continue $c;
    

    break and continue accepts a number, that specify the number of nested loops, that should be breaked up, or continued. Have a look at the example at the manual.

    However, it seems, that break and continue are not usable with variables anymore. In my personal experience, this will affect .. nobody ;)

    0 讨论(0)
提交回复
热议问题