Re: using returned references directly?

From: Date: Tue, 18 May 2004 08:19:56 +0000
Subject: Re: using returned references directly?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186454@lists.php.net to get a copy of this message
Jeff Schmidt wrote:
Hello, Say I have object A, with method getObjectB(), which returns a reference to object2. Is there a way to do something like $A->getObjectB()->methodFromObjectB();
Don't know if this would work, but you could give it it a try : call_user_func(array(get_class($A->getObjectB()), 'methodFromObjectB'));

« previous php.general (#186454) next »