This works:
$b = $a->method1();
$c = $b->method2();
I'd like to get this all on one expression, something like:
$c = ${$a->method1()}->method2();
which doesn't work.
Is there any way to avoid actually creating and then using the $b
object?
Thanks,
</edg>
Ed Greenberg
San Jose CA USA
$b = $a->method1();
$c = $b->method2();
I'd like to get this all on one expression, something like:
$c = ${$a->method1()}->method2();
which doesn't work.
Is there any way to avoid actually creating and then using the $b
object?
Thanks,
</edg>
Ed Greenberg
San Jose CA USA
Comment