|
Posted by Colin Fine on 09/29/05 02:23
Justin Koivisto wrote:
> Geoff Berrow wrote:
>
>>I noticed that Message-ID: <g7adnSZjsrQAD6XeRVn-tw@onvoy.com> from
>>Justin Koivisto contained the following:
>>
>>
>>>Does anyone know what the name of the => operator in PHP is? It is
>>>something that is nearly impossible to search for, and I am not sure if
>>>it even has a name. I know that there has been a couple php-dev people
>>>in here before, so maybe someone kind throw me a bone... ;)
>>
>>I couldn't find out either so I decided to name it myself. I call it an
>>'andits' foreach ($key andits $value){... Geddit?
>
>
> Now that's funny!
>
> I've been calling the "indirect assignment operator" in the class notes
> that I've been preparing, but wanted to see if there was an official name...
>
Now this is like the Holy Roman Empire which was neither Holy nor Roman,
nor (in its later days) an Empire.
Whatever => is, it is not an operator (it's a bit of syntax like a comma
), does not denote assignment, and has not much to do with indirection.
Sklar's book (Learning PHP5) glosses it as 'key/value pair separator',
but only in the index as far as I can tell.
I rather like 'andits'
Colin
[Back to original message]
|