摘要: 这个陷阱在PHP里存在很久了,先看代码:<?php$array = array(1, 2, 3);foreach ($array as &$v) {}foreach ($array as $v) {}print_r($array);?>运行代码,得到的结果却是:Array([0] => 1[1] = 阅读全文
posted @ 2020-03-17 15:09 做网站的菜鸟 阅读(142) 评论(0) 推荐(0) 编辑