Posted by Andy Hassall on 09/27/05 22:38
On Mon, 26 Sep 2005 19:30:20 -0500, Justin Koivisto <justin@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 :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|