RE: [PHP] Function/method syntax limitations
| From: | James Moore | Date: | Tue, 20 Feb 2001 23:52:48 +0000 |
| Subject: | RE: [PHP] Function/method syntax limitations | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40855@lists.php.net to get a copy of this message | ||
untested but..
> $foo = ${$test->blah()}[0];
> // Similarly for objects, cannot do:
> $foo = $test->childTest()->blah();
$foo = ${$test->childTest()}->blah();
> // Instead have to do:
> $temp = $test->childTest();
> $foo = $temp->blah();
Might work.. never had need to test it and cant be bothered now but would be
intereted to hear if it works..
James