Re: Newbie question about operators
| From: | Gabe | Date: | Thu, 08 Apr 2004 15:30:25 +0000 |
| Subject: | Re: Newbie question about operators | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182846@lists.php.net to get a copy of this message | ||
Thanks Ligaya
"Ligaya Turmelle" <lig@mgpt.com> wrote in message
news:20040408002246.16147.qmail@pb1.pair.com...
> it is refering to the associative array, specifically the $key => $value .
> Note here (http://www.php.net/manual/en/language.types.array.php).
>
> Respectfully,
> Ligaya Turmelle
>
> "Gabe" <ydnahg-news4432@mailblocks.com> wrote in message
> news:20040407211122.96087.qmail@pb1.pair.com...
> > Looking at the code below, what exactly is happening with the
> $name=>$value
> > part? I looked in the PHP online documentation and I can't find that
> > operator. What is it doing exactly and what is it called?
> >
> > foreach ($some_array as $name=>$value)
> > {
> > ... some code ...
> > }
> >
> > Thanks alot!