Home > Backend Development > PHP Tutorial > 昨天在做数据库批量导入的时候遇到的老有关问题(foreach+&有关问题)

昨天在做数据库批量导入的时候遇到的老有关问题(foreach+&有关问题)

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

昨天在做数据库批量导入的时候遇到的老问题(foreach+&问题)
问题可以简要的概括为:

$arr = array(1,2,3,4,5);<br />foreach($arr as $key => &$row) {}<br />foreach($arr as $key => $row) {}<br />var_dump($arr);
Copy after login

array (size=5)<br />  0 => int 1<br />  1 => int 2<br />  2 => int 3<br />  3 => int 4<br />  4 => &int 4
Copy after login

foreach 指针问题,指针大神,求现身!

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