Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57581 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52596 invoked from network); 30 Jan 2012 18:55:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2012 18:55:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 207.97.245.183 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 207.97.245.183 smtp183.iad.emailsrvr.com Linux 2.6 Received: from [207.97.245.183] ([207.97.245.183:38253] helo=smtp183.iad.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/CB-53934-797E62F4 for ; Mon, 30 Jan 2012 13:55:20 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp38.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 8A69E34818D; Mon, 30 Jan 2012 13:55:17 -0500 (EST) X-Virus-Scanned: OK Received: by smtp38.relay.iad1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 22753348196; Mon, 30 Jan 2012 13:55:17 -0500 (EST) Message-ID: <4F26E794.7040402@sugarcrm.com> Date: Mon, 30 Jan 2012 10:55:16 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Adi Nita CC: "internals@lists.php.net" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] operators From: smalyshev@sugarcrm.com (Stas Malyshev) 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