Home  >  Article  >  Backend Development  >  foreach 问题

foreach 问题

WBOY
WBOYOriginal
2016-06-06 20:10:31987browse

foreach($arr as &$value){} 这样给他引号符 谁能详细给我说说过程 我只知道是给地址 但是不了解

回复内容:

foreach($arr as &$value){} 这样给他引号符 谁能详细给我说说过程 我只知道是给地址 但是不了解

当我们使用foreach时,内部究竟发生了什么(PHP5)?

今天刚写的一篇文章,对你彻底理解foreach应该有些帮助。

你自己知道 但是表达不出来 是循环完一遍就把copy赋值给真的 还是说 循环完了整个数组 才赋值 还有 这样赋值体现的那个例子也不清楚

Statement:
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