Re: operators
| From: | Stas Malyshev | Date: | Mon, 30 Jan 2012 18:55:16 +0000 |
| Subject: | Re: operators | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-57581@lists.php.net to get a copy of this message | ||
Hi!
Does anyone know what are the official names for the "->" and "=>" operators? They don't seem to be included in the PHP documentation, although I would have expected them to reside in the Operators section of the manual.=> is not exactly operator, it's part of the array operator syntax (e.g. array($foo => $bar) produces array from two vars, => by itself is not used). -> is usually called an arrow operator.
Also, the "\" operator used for declaring sub-namespaces is never mentioned as a proper operator in the PHP manual, let alone have a specific name.\ is not an operator either, it's a namespace separator. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227