Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49220 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27424 invoked from network); 6 Aug 2010 17:47:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Aug 2010 17:47:00 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.153 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.153 smtp153.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.153] ([67.192.241.153:33628] helo=smtp153.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/E7-21239-39A4C5C4 for ; Fri, 06 Aug 2010 13:46:59 -0400 Received: from relay25.relay.dfw.mlsrvr.com (localhost [127.0.0.1]) by relay25.relay.dfw.mlsrvr.com (SMTP Server) with ESMTP id E75E93601C5; Fri, 6 Aug 2010 13:46:55 -0400 (EDT) Received: by relay25.relay.dfw.mlsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id AF1B13601CF; Fri, 6 Aug 2010 13:46:55 -0400 (EDT) Message-ID: <4C5C4A8F.8060207@sugarcrm.com> Date: Fri, 06 Aug 2010 10:46:55 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: "mathieu.suen" CC: PHP internals References: <4C5C1D2E.6070805@easyflirt.com> In-Reply-To: <4C5C1D2E.6070805@easyflirt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Indexing an array From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > For now you can only index an array using a scalar type or a string. > Is there some rfc or work going on to enlarge the possibility so that it > is possible to have some other object like: I think SplObjectStorage implements most common use-case for such behavior, do you have any other one that is not covered there and can't be done by __toString()? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227