Re: Function/method syntax limitations
| From: | Simon Garner | Date: | Tue, 20 Feb 2001 23:53:48 +0000 |
| Subject: | Re: Function/method syntax limitations | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40858@lists.php.net to get a copy of this message | ||
From: "James Moore" <jmoore@php.net>
> untested but..
>
> > $foo = ${$test->blah()}[0];
>
> > // Similarly for objects, cannot do:
> > $foo = $test->childTest()->blah();
>
> $foo = ${$test->childTest()}->blah();
>
Nope, I tried that :)
> > // 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
>
Cheers
Simon Garner