<?php
/* Assignment of array variables */
$arr = array(1);
$a =& $arr[0]; //$a and $arr[0] are in the same reference set
$arr2 = $arr; //not an assignment-by-reference!
$arr2[0]++;
?>
输出为$a == 2
, $arr == array(2)
。的内容$arr
已更改,即使它不是参考!
谁能告诉这怎么可能?