You are here: Re: PHP5 and class inheritance question « PHP Programming Language « IT news, forums, messages
Re: PHP5 and class inheritance question

Posted by Logos on 12/19/07 22:11

<cowers in the middle as flames go over his head>

So is this, my current understanding, correct?
$foo = new Test();
$a = $foo;
$b = &$foo;

$foo and $b are both pointing to the same thingie, which in turn
points to Test().
$a is pointing to a different thingie from $foo/$b, which in turn
points to Test().

Changing either $foo OR $b to point to a new thingie will result in
BOTH being changed.
Changing $a to point to a new thingie will leave $foo and $b
unaffected.

<looks hopeful>

 

Navigation:

[Reply to this 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

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