So then the squirrel said, "Don't tell me about capitalism."
Why does
<?php $a=array(1);$b=$a;$a[0]=2;echo $b[0];?>
output 1, while
<?php $a=array(1);$c=&$a[0];$b=$a;$a[0]=2;echo $b[0];?>
outputs 2?
Post a Comment
No comments:
Post a Comment