Re: Indexing an array

From: Date: Sat, 07 Aug 2010 13:50:46 +0000
Subject: Re: Indexing an array
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-49222@lists.php.net to get a copy of this message
On 06/Aug/10 6:20 PM, Hannes Magnusson wrote:
On Fri, Aug 6, 2010 at 16:33, mathieu.suen<mathieu.suen@easyflirt.com> 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 don't think it makes sense.
It makes. That's why SplObjectStorage implements ArrayAccess. -- Ionuț G. Stan | http://igstan.ro

« previous php.internals (#49222) next »