What is this => symbol Called in PHP. I know it can be interpret as Equal Sign Right Angle Bracket. | can be called Pipe or OR. but my prof was asking the other term to call the => symbol. It is for assigning a value to a key in array class. does anyone know what this is called?
Asked
Active
Viewed 2,224 times
5
-
The ruby people used to call it `hashrocket` but i doubt that this is the answer you are looking for. (-: – complex857 Jul 26 '12 at 04:28
-
1check this http://stackoverflow.com/questions/3737139/reference-what-does-this-symbol-mean-in-php – NewUser Jul 26 '12 at 04:30
-
thanks for giving an idea :) I hope someone can figure it out though – Hanzo Kimura Jul 26 '12 at 04:30
-
Does this answer your question? [What Does This Mean in PHP -> or =>](https://stackoverflow.com/questions/14037290/what-does-this-mean-in-php-or) – Dharman Nov 12 '20 at 13:23
4 Answers
6
It's officially being called T_DOUBLE_ARROW
.
Reference: http://php.net/manual/en/tokens.php

uzyn
- 6,625
- 5
- 22
- 41
2
It is an assignment operator There are no official names but, if you come across any PHP Error referring to non-associative key then, PHP error calls it T_DOUBLE_ARROW

Keval Domadia
- 4,768
- 1
- 37
- 64
-
-
at work, I just call it "point-key" however, that's not official ;) – Keval Domadia Jul 26 '12 at 05:05
0
I've often heard it referred to (atleast in the perl world) as a "double barrelled arrow".

Noufal Ibrahim
- 71,383
- 13
- 135
- 169