|
Posted by Norman Peelman on 11/22/06 04:07
"windandwaves" <nfrancken@gmail.com> wrote in message
news:1164159141.932482.73140@m73g2000cwd.googlegroups.com...
> Hi Folk
>
> If I have myfunction() {
> return array();
> }
>
> then can I write
>
> echo myfunction()[0];
>
> I tried that, and I can not, but is there a way or do I have to write
> $myvar = myfunction();
> echo $myvar[0];
>
> TIA
>
> >nicolaas
>
What do you mean you 'have' to write... try:
$rtn_arr = myfunction();
echo $rtn_arr[0];
Norm
--
FREE Avatar hosting at www.easyavatar.com
Navigation:
[Reply to this message]
|