Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
php trivia: =>
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  22 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Justin Koivisto  
View profile  
 More options Sep 26 2005, 8:30 pm
Newsgroups: comp.lang.php
From: Justin Koivisto <jus...@koivi.com>
Date: Mon, 26 Sep 2005 19:30:20 -0500
Local: Mon, Sep 26 2005 8:30 pm
Subject: php trivia: =>
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... ;)

--
Justin Koivisto, ZCE - jus...@koivi.com
http://koivi.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
boclair  
View profile  
 More options Sep 26 2005, 8:47 pm
Newsgroups: comp.lang.php
From: boclair <bocl...@bigpond.net.au>
Date: Tue, 27 Sep 2005 00:47:43 GMT
Local: Mon, Sep 26 2005 8:47 pm
Subject: Re: php trivia: =>

Justin Koivisto wrote:
> 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 know it as  "assignment operator"  but probably incorrectly.

Louise


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Koivisto  
View profile  
 More options Sep 26 2005, 10:51 pm
Newsgroups: comp.lang.php
From: Justin Koivisto <jus...@koivi.com>
Date: Mon, 26 Sep 2005 21:51:34 -0500
Local: Mon, Sep 26 2005 10:51 pm
Subject: Re: php trivia: =>

boclair wrote:
> Justin Koivisto wrote:

>> 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 know it as  "assignment operator"  but probably incorrectly.

The assignment operator would the just the = as in:

$a = 5;
"Variable a is assigned the integer value of five"

Almost everywhere I've seen it discussed it is simply referenced as:
"key => value" and is always typed out.

However, I guess it is sort of an assignment operator... Great now there
are 2 of them! ;)

It's not a big deal, just one of those curiosity things that starts to
annoy you late at night. That and I figured that it was about time I
asked a question here anyway...

--
Justin Koivisto, ZCE - jus...@koivi.com
http://koivi.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chung Leong  
View profile  
 More options Sep 26 2005, 11:41 pm
Newsgroups: comp.lang.php
From: "Chung Leong" <chernyshev...@hotmail.com>
Date: 26 Sep 2005 20:41:10 -0700
Local: Mon, Sep 26 2005 11:41 pm
Subject: Re: php trivia: =>
Good question. In the source code it's known as the double arrow. Not a
correct use of the term though.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Geoff Berrow  
View profile  
 More options Sep 27 2005, 2:10 am
Newsgroups: comp.lang.php
From: Geoff Berrow <blthe...@ckdog.co.uk>
Date: Tue, 27 Sep 2005 07:10:14 +0100
Local: Tues, Sep 27 2005 2:10 am
Subject: Re: php trivia: =>
I noticed that Message-ID: <g7adnSZjsrQAD6XeRVn...@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?

--
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/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kirsten  
View profile  
 More options Sep 27 2005, 2:55 am
Newsgroups: comp.lang.php
From: Kirsten <K.Schu...@feuerwehr-meerbusch.de>
Date: Tue, 27 Sep 2005 08:55:43 +0200
Local: Tues, Sep 27 2005 2:55 am
Subject: Re: php trivia: =>
Justin Koivisto schrieb:
> 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 never seen a name for it.
...mmmmmh, but if there is no name, i think we should find one for it.

-Kirsten


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Geoff Berrow  
View profile  
 More options Sep 27 2005, 2:57 am
Newsgroups: comp.lang.php
From: Geoff Berrow <blthe...@ckdog.co.uk>
Date: Tue, 27 Sep 2005 07:57:51 +0100
Local: Tues, Sep 27 2005 2:57 am
Subject: Re: php trivia: =>
I noticed that Message-ID:
<1127804150.fa5fba4a665ee16af6fb52b194e3986e@teranews> from Kirsten
contained the following:

>I never seen a name for it.
>...mmmmmh, but if there is no name, i think we should find one for it.

See my other post.  I'm trying to popularise 'andits'

Could be my major contribution to the open source community :-)

--
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/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kirsten  
View profile  
 More options Sep 27 2005, 5:01 am
Newsgroups: comp.lang.php
From: Kirsten <K.Schu...@feuerwehr-meerbusch.de>
Date: Tue, 27 Sep 2005 11:01:55 +0200
Local: Tues, Sep 27 2005 5:01 am
Subject: Re: php trivia: =>
Geoff Berrow schrieb:
> See my other post.  I'm trying to popularise 'andits'

> Could be my major contribution to the open source community :-)

Yes thats it, it's all in one word, let's send it to ZEND so they could
use it in their next PHP documentaion. :-)

-Kirsten


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Koivisto  
View profile  
 More options Sep 27 2005, 8:24 am
Newsgroups: comp.lang.php
From: Justin Koivisto <jus...@koivi.com>
Date: Tue, 27 Sep 2005 07:24:18 -0500
Local: Tues, Sep 27 2005 8:24 am
Subject: Re: php trivia: =>

Geoff Berrow wrote:
> I noticed that Message-ID: <g7adnSZjsrQAD6XeRVn...@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...

I think for now I will stick with what I have in the notes. I think that
naming an assignment operator in a way that could possibly be confused
with a logical operator would just be too confusing for newbies. ;)

--
Justin Koivisto, ZCE - jus...@koivi.com
http://koivi.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ZeldorBlat  
View profile  
 More options Sep 27 2005, 10:16 am
Newsgroups: comp.lang.php
From: "ZeldorBlat" <zeldorb...@gmail.com>
Date: 27 Sep 2005 07:16:42 -0700
Local: Tues, Sep 27 2005 10:16 am
Subject: Re: php trivia: =>

>I never seen a name for it.
>...mmmmmh, but if there is no name, i think we should find one for it.

What's wrong with "equal to or greater than?"

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Koivisto  
View profile  
 More options Sep 27 2005, 10:52 am
Newsgroups: comp.lang.php
From: Justin Koivisto <jus...@koivi.com>
Date: Tue, 27 Sep 2005 09:52:17 -0500
Local: Tues, Sep 27 2005 10:52 am
Subject: Re: php trivia: =>

ZeldorBlat wrote:
>>I never seen a name for it.
>>...mmmmmh, but if there is no name, i think we should find one for it.

> What's wrong with "equal to or greater than?"

um... ya, that would be a comparison operator, and that is not what this
is...

--
Justin Koivisto, ZCE - jus...@koivi.com
http://koivi.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Koivisto  
View profile  
 More options Sep 27 2005, 11:11 am
Newsgroups: comp.lang.php
From: Justin Koivisto <jus...@koivi.com>
Date: Tue, 27 Sep 2005 10:11:32 -0500
Local: Tues, Sep 27 2005 11:11 am
Subject: Re: php trivia: =>

Justin Koivisto wrote:
> 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... ;)

OK, I've decided to call it "double arrow" as in the source code... Now
the php docs just need to be updated to give it the name so that is
searchable. Thanks to Chung and Chris Shiflett (off-list) on this one.

--
Justin Koivisto, ZCE - jus...@koivi.com
http://koivi.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Geoff Berrow  
View profile  
 More options Sep 27 2005, 11:54 am
Newsgroups: comp.lang.php
From: Geoff Berrow <blthe...@ckdog.co.uk>
Date: Tue, 27 Sep 2005 16:54:35 +0100
Local: Tues, Sep 27 2005 11:54 am
Subject: Re: php trivia: =>
I noticed that Message-ID: <2MGdnTpp5aFtpKTeRVn...@onvoy.com> from
Justin Koivisto contained the following:

>> 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...

>I think for now I will stick with what I have in the notes. I think that
>naming an assignment operator in a way that could possibly be confused
>with a logical operator would just be too confusing for newbies. ;)

Well I wouldn't stress the 'and' part but I see what you mean.  However
I teach a beginners class  and my students don't get confused (well they
get pretty confused with logical operators, but that's another story.

Double arrow?  Nah, that does nothing.  I think the best names at least
imply some meaning.  I think I'll stick with 'andits'. :-)
--
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/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Koivisto  
View profile  
 More options Sep 27 2005, 12:20 pm
Newsgroups: comp.lang.php
From: Justin Koivisto <jus...@koivi.com>
Date: Tue, 27 Sep 2005 11:20:38 -0500
Local: Tues, Sep 27 2005 12:20 pm
Subject: Re: php trivia: =>

Don't get me wrong, I like it, but IME catchy names like this don't
stick. Programmers seem to always fall back on the boring, simple ones. ;)

--
Justin Koivisto, ZCE - jus...@koivi.com
http://koivi.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Geoff Berrow  
View profile  
 More options Sep 27 2005, 12:47 pm
Newsgroups: comp.lang.php
From: Geoff Berrow <blthe...@ckdog.co.uk>
Date: Tue, 27 Sep 2005 17:47:14 +0100
Local: Tues, Sep 27 2005 12:47 pm
Subject: Re: php trivia: =>
I noticed that Message-ID: <BY-dncGz7qbO7KTeRVn...@onvoy.com> from
Justin Koivisto contained the following:

>> Double arrow?  Nah, that does nothing.  I think the best names at least
>> imply some meaning.  I think I'll stick with 'andits'. :-)

>Don't get me wrong, I like it, but IME catchy names like this don't
>stick. Programmers seem to always fall back on the boring, simple ones. ;)

Well there's pling...

--
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/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andy Hassall  
View profile  
 More options Sep 27 2005, 3:38 pm
Newsgroups: comp.lang.php
From: Andy Hassall <a...@andyh.co.uk>
Date: Tue, 27 Sep 2005 20:38:42 +0100
Local: Tues, Sep 27 2005 3:38 pm
Subject: Re: php trivia: =>

On Mon, 26 Sep 2005 19:30:20 -0500, Justin Koivisto <jus...@koivi.com> wrote:
>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... ;)

 In the parser's scanner it's T_DOUBLE_ARROW, so it's a double arrow.

andyh@server:/usr/src/php-5.1.0RC1/Zend$ grep -2 '=>' zend_language_scanner.l

}

<ST_IN_SCRIPTING>"=>" {
        return T_DOUBLE_ARROW;
}

--
Andy Hassall :: a...@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Larry Jaques  
View profile  
 More options Sep 28 2005, 4:23 pm
Newsgroups: comp.lang.php
From: Larry Jaques <novalidaddress@di\/ersify.com>
Date: Wed, 28 Sep 2005 13:23:31 -0700
Local: Wed, Sep 28 2005 4:23 pm
Subject: Re: php trivia: =>
On Tue, 27 Sep 2005 08:55:43 +0200, with neither quill nor qualm,
Kirsten <K.Schu...@feuerwehr-meerbusch.de> quickly quoth:

>Justin Koivisto schrieb:
>> 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 never seen a name for it.
>...mmmmmh, but if there is no name, i think we should find one for it.

Maybe that's why I'm having trouble wrapping my mind around classes.
I don't know the operator sign's name. ;)

How about "egrets" from Equal GREater-Than Sign ?

--
"Simplicity of life, even the barest, is not misery but
 the very foundation of refinement." --William Morris
          -----------------------------------
 www.diversify.com  Comprehensive Website Development


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Colin Fine  
View profile  
 More options Sep 28 2005, 7:23 pm
Newsgroups: comp.lang.php
From: Colin Fine <n...@kindness.demon.co.uk>
Date: Thu, 29 Sep 2005 00:23:07 +0100
Local: Wed, Sep 28 2005 7:23 pm
Subject: Re: php trivia: =>

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kirsten  
View profile  
 More options Sep 29 2005, 7:15 am
Newsgroups: comp.lang.php
From: Kirsten <K.Schu...@feuerwehr-meerbusch.de>
Date: Thu, 29 Sep 2005 13:15:50 +0200
Local: Thurs, Sep 29 2005 7:15 am
Subject: Re: php trivia: =>
Larry Jaques schrieb:

> Maybe that's why I'm having trouble wrapping my mind around classes.
> I don't know the operator sign's name. ;)

> How about "egrets" from Equal GREater-Than Sign ?

Thats nice, too.
Therefor we have now two suggestions:

        -"andits"
        -"egrets"
Anyone an other suggestion?

-Kirsten

P.S.: May be the reason why many people have trouble understanding
classes ;)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
none743873297498237  
View profile  
 More options Sep 29 2005, 9:38 am
Newsgroups: comp.lang.php
From: "none743873297498237" <auditor...@gmail.com>
Date: 29 Sep 2005 06:38:43 -0700
Local: Thurs, Sep 29 2005 9:38 am
Subject: Re: php trivia: =>
foreach($a as $k "y su" $v ){

}

as an english pun, it sounds acceptable, however, it would confuse
(even more) the non-hacker & the non-english speaking comunity outside
the US
, i for one, speak spanish, and the joke is not obvious at first
glance, so:

es => ' y su '
en => "and it's"

seriously, it doesnt really make that much sense,
and remember, u must take internationalization into consideration when
u name things like that, so u dont go the ms way:
i.e.
windows vista:
vista, in spanish means "view", (but you probably knew that)
however, in lativian, its another story
(http://www.activewin.com/awin/comments.asp?HeadlineIndex=30777)

quote:

 In Latvian this one will be great : Windows Chicken (that's for
Latvian vista)

:end quote

im not fluent in lativian, nor i know where it is spoken, (europe?),
but i get this feeling that in the lativian speaking comunity, there is
going to be a lot of ppl migrating to linux in late 2006......

so, my suggestion:

=>    (check man pages for perl =>, and just copy paste)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Koivisto  
View profile  
 More options Sep 29 2005, 10:08 am
Newsgroups: comp.lang.php
From: Justin Koivisto <jus...@koivi.com>
Date: Thu, 29 Sep 2005 09:08:42 -0500
Local: Thurs, Sep 29 2005 10:08 am
Subject: Re: php trivia: =>

=> is an array operator... The indirection operator (->) is used for
classes...

> How about "egrets" from Equal GREater-Than Sign ?

Sounds like a bird to me... ;) Also you may not "regret" using it...

--
Justin Koivisto, ZCE - jus...@koivi.com
http://koivi.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam i Agnieszka Gasiorowski FNORD  
View profile  
 More options Oct 1 2005, 4:52 pm
Newsgroups: comp.lang.php
From: Adam i Agnieszka Gasiorowski FNORD <agqu...@venus.ci.uw.edu.pl>
Date: Sat, 1 Oct 2005 20:52:47 +0000
Local: Sat, Oct 1 2005 4:52 pm
Subject: Re: php trivia: =>
On 2005-09-27 06:10:14 +0000, Geoff Berrow <blthe...@ckdog.co.uk> said:

> I noticed that Message-ID: <g7adnSZjsrQAD6XeRVn...@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?

        How ab{oo}t simply calling it "implication". $key IMPLIES $value.
 It even looks like mathematic symbol for implication...

-- 
Seks, seksić, seksolatki...<uri: news:pl.soc.seks.moderowana >
Close to the middle of the network. We're looking for a center. 
What if it turns out to be hollow? We could be what is broken...
https://hyperreal.info | https://kanaba.info |=> "Szanuj Zieleń!"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »