Reply to Re: Reference to reference?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация