Re: Indexing an array

From: Date: Mon, 09 Aug 2010 11:50:34 +0000
Subject: Re: Indexing an array
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-49226@lists.php.net to get a copy of this message
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

« previous php.internals (#49226) next »