本文介绍了什么是“中断/继续$ var语法"? (将在PHP 5.4中删除)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在查看有关PHP 5.4的 alpha 1新闻并找到一些已删除的内容.

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

在该列表中,他们谈论了break/continue $var syntax.

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

推荐答案

我认为这是故意的

break $c;
continue $c;

breakcontinue接受一个数字,该数字指定应拆分或继续的嵌套循环数.看看手册中的示例 .

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.

但是,似乎breakcontinue不再可用于变量.以我的个人经验,这将影响..没有人;)

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

这篇关于什么是“中断/继续$ var语法"? (将在PHP 5.4中删除)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 17:46