I noticed that Message-ID: <hebq01pbba2p2shmt60e66e5mafdoagkjt@4ax.com>
from Andy Hassall contained the following:
[color=blue][color=green]
>>foreach($array as $key=>$value){ etc..}
>>
>>But what is ' =>' called?[/color]
>
> Well, PHP has some Perl roots, where => is called a "fat comma" due to it
>being just syntactic sugar in hashes. The name probably makes even less sense
>in PHP.[/color]
Hmmm, you're right.[color=blue]
>
> I always read loops as above as "foreach array as key 'to' value". In the gory
>depths of the Zend PHP language parser, it's referred to as "T_DOUBLE_ARROW".[/color]
I kind of like the idea that we all use something regularly that doesn't
appear to have a name. :-)
I propose we call it the 'andits' operator.
$key andits $value. geddit?
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs
http://www.ckdog.co.uk/rfdmaker/