FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Class as arguments while function defenition
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Class as arguments while function defenition [message #177582 is a reply to message #177537] Tue, 10 April 2012 12:58 Go to previous message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma:
Senior Member
.oO(Leonardo Azpurua)

> I guess the question is more about the presence of the reference
> operator.
>
> It makes me curious too. Every variable containing a reference to an
> object is in tiself a reference.

But it's not the same kind of reference. The way PHP addresses its
objects internally by some kind of numeric identifier is different
from the & operator. In some cases this can be important (but in the
posted code it looks like a mistake).

Example #4 Object Assignment
http://www.php.net/manual/en/language.oop5.basic.php#example-167

Micha

--
http://mfesser.de/blickwinkel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: 5.4 windows installer.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 00:31:37 GMT 2024

Total time taken to generate the page: 0.04318 seconds