You are here: Re: php trivia: => « PHP Programming Language « IT news, forums, messages
Re: php trivia: =>

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация