<?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
参考にならないのに中身が変わってる!
これがどのように可能か誰にもわかりますか?