|
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?
[Back to original message]
|