Reply to Re: Need to return reference in this case?

Your name:

Reply:


Posted by howa on 06/04/07 15:58

On Jun 4, 10:34 pm, gosha bine <stereof...@gmail.com> wrote:

> Yet again, "$a = new Foo" actually creates TWO objects in php4. The
> first one is an anonymous object created by "new" and the second one is
> the object the variable "$a" points to. This behavior is ineffective AND
> it doesn't work in certain cases, e.g singletons.
>

but using a static function variable made singleton possible (in
PHP4), as my example above, both ways are working...

[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

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