更新时间:2022-10-15 16:50:40
在两个嵌套循环的情况下:
休息2;
http://php.net/manual/en/control-structures.break.php
I am looking to break an outer for/foreach loop in PHP.
This can be done in ActionScript like so:
top : for each(var i:MovieClip in movieClipArray)
{
for each(var j:String in nameArray)
{
if(i.name == j) break top;
}
}
What's the PHP equivalent?
In the case of 2 nested loops:
break 2;