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'));

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to