|
Posted by Jose da Silva on 02/01/07 14:37
Yes, you should have no trouble in doing someting like:
<?
$x = 1000;
$y = &$x;
$z = &$y;
?>
In final $y will be like $z.
I think that is what you are asking for.
Jose Silva
http://www.t6m.com
On Feb 1, 1:49 pm, "Tamagafk" <tamag...@gmail.com> wrote:
> Today I discovered that I don't understand how references work in php.
> I create object, then I store reference to this object into array.
> Then I do so into another array. And suddenly I have two vars taken by
> reference which should point to single object, but they are different.
>
> Is there possibility of "reference to reference" in php?
> I'm just going crazy, can't figure out everything...
[Back to original message]
|