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 #177536 is a reply to message #177535] Sun, 08 April 2012 13:06 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
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

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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:26:26 GMT 2024

Total time taken to generate the page: 0.05421 seconds