|
Posted by Summercool on 09/27/07 20:54
I wonder in PHP5, can we use
$array1 = $array2 as if it is a class?
i think right now, the whole array is copied (by key and value)...
and i want to assign by reference but NOT in the alias sense.
in other world, i want to say
$array1 =& $array2;
$array2 = range(1, 3);
and I don't want $array1 to change, just like any other objects in
PHP5.
Navigation:
[Reply to this message]
|