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 17:01

On Dec 13, 3:16 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(gosha bine)
>
> >in addition to what's already said, there's no need to use references
> >in php5.
>
> At least when working with objects. But nevertheless
>
> $foo = new Test();
> $a = $foo;
> $b = &$foo;
>
> are still different things, even in PHP 5. In some particular situations
> this might become an issue.
>
> Micha

Oooo...errr...ummm...could someone explain how exactly those are
different when using PHP5, then, please? If everything is done by
reference for objects, then to me $a and $b both look like pointers to
an object.

And...are objects always passed by reference to functions in PHP5,
then?

 

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

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