Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49226 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67207 invoked from network); 9 Aug 2010 11:50:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2010 11:50:49 -0000 Authentication-Results: pb1.pair.com header.from=mathieu.suen@easyflirt.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mathieu.suen@easyflirt.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain easyflirt.com designates 91.199.255.56 as permitted sender) X-PHP-List-Original-Sender: mathieu.suen@easyflirt.com X-Host-Fingerprint: 91.199.255.56 python-06.easyrencontre.com Linux 2.6 Received: from [91.199.255.56] ([91.199.255.56:46789] helo=mail.easyflirt.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 69/FD-63845-D8BEF5C4 for ; Mon, 09 Aug 2010 07:50:37 -0400 Received: from [192.168.0.51] (office.easyrencontre.com [78.155.152.6]) by mail.easyflirt.com (Postfix) with ESMTPSA id 7439C637509; Mon, 9 Aug 2010 13:50:34 +0200 (CEST) Message-ID: <4C5FEB8A.1050804@easyflirt.com> Date: Mon, 09 Aug 2010 13:50:34 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: Stas Malyshev CC: PHP internals References: <4C5C1D2E.6070805@easyflirt.com> <4C5C4A8F.8060207@sugarcrm.com> In-Reply-To: <4C5C4A8F.8060207@sugarcrm.com> Content-Type: multipart/alternative; boundary="------------070403050409000807030808" Subject: Re: [PHP-DEV] Indexing an array From: mathieu.suen@easyflirt.com ("mathieu.suen") --------------070403050409000807030808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08/06/2010 07:46 PM, Stas Malyshev wrote: > 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()? Yes but what I don't like with the Spl is that it does not work with the array_* function and the sort function. -- Mathieu Suen --------------070403050409000807030808--