Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62762 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27427 invoked from network); 3 Sep 2012 19:59:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2012 19:59:13 -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 67.192.241.147 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.147 smtp147.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.147] ([67.192.241.147:36748] helo=smtp147.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/65-20751-F0C05405 for ; Mon, 03 Sep 2012 15:59:12 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp31.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id B506A503EF; Mon, 3 Sep 2012 15:59:08 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp31.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 4CF88503E4; Mon, 3 Sep 2012 15:59:08 -0400 (EDT) Message-ID: <50450C0B.9050206@sugarcrm.com> Date: Mon, 03 Sep 2012 12:59:07 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: "slevy1@pipeline.com" CC: Jannik Zschiesche , "internals@lists.php.net" References: <4477847.1346676078470.JavaMail.root@wamui-june.atl.sa.earthlink.net> In-Reply-To: <4477847.1346676078470.JavaMail.root@wamui-june.atl.sa.earthlink.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Support negative indexes for arrays and strings From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > The terminology "negative indexing" seems to imply that the feature > should work with arrays. To restrict it to just strings might involve > creating a term one would only associate with strings. I do not see any way to change behavior of $array[-1] that would make sense. So either only strings get it or nobody gets it. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227