Re: can this be done, referrring to an array immediately



"windandwaves" <nfrancken@xxxxxxxxx> wrote in message
news:1164159141.932482.73140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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


.



Relevant Pages