Re: can this be done, referrring to an array immediately
- From: "Norman Peelman" <npeelman@xxxxxxxxxx>
- Date: Wed, 22 Nov 2006 04:07:00 GMT
"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
.
- References:
- can this be done, referrring to an array immediately
- From: windandwaves
- can this be done, referrring to an array immediately
- Prev by Date: Re: Lost formatting in browser 'view source'
- Next by Date: Re: can this be done, referrring to an array immediately
- Previous by thread: can this be done, referrring to an array immediately
- Next by thread: Re: can this be done, referrring to an array immediately
- Index(es):
Relevant Pages
|