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

??

When I try that, I get a parse error? Is this simply not possible with PHP, or is the syntax just a little different?

I mean, I could:

$b = $A->getObjectB();
$b->methodFromObjectB();

But since I only want to use object B once, it seems like a waste to store it and then use it. I do this kind of thing in other OO languages quite frequently.

Jeff Schmidt

Attachment: signature.asc
Description: OpenPGP digital signature



Reply via email to