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 #177537 is a reply to message #177536] Sun, 08 April 2012 15:09 Go to previous messageGo to previous message
Leonardo Azpurua is currently offline  Leonardo Azpurua
Messages: 46
Registered: December 2010
Karma:
Member
"Jerry Stuckle" <jstucklex(at)attglobal(dot)net> escribió en el mensaje
news:jls2gq$g5k$1(at)dont-email(dot)me...
> On 4/8/2012 3:01 AM, sakthi wrote:
>> public static function render( ClassA&$parser ) {
>> }
>>
>> Here in render function, ClassA is a class which is passed as an
>> argument. What does this mean ?
>
> http://www.php.net/manual/en/language.oop5.typehinting.php

Hi,

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.

Is this function expected to assign a diference instance to that reference?

--
[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:35:22 GMT 2024

Total time taken to generate the page: 0.04684 seconds