php 关于foreach双循环中断、跳出的有关问题

WBOY
Release: 2016-06-13 11:45:06
Original
1141 people have browsed it

php 关于foreach双循环中断、跳出的问题
我想找到需要的数据后,跳出双重循环,然后继续接着执行下面的代码。 我用了break,只结束了内层循环的当次循环。用了return,后面的代码都不执行了。 请问大虾们,这个问题怎么弄?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template