Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is this symbol called =>

Tags:

php

symbols

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?

like image 442
Hanzo Kimura Avatar asked Feb 20 '23 17:02

Hanzo Kimura


1 Answers

It's officially being called T_DOUBLE_ARROW.

Reference: http://php.net/manual/en/tokens.php

like image 59
uzyn Avatar answered Mar 02 '23 18:03

uzyn