Re: Indexing an array

From: Date: Fri, 06 Aug 2010 17:46:55 +0000
Subject: Re: Indexing an array
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-49220@lists.php.net to get a copy of this message
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

« previous php.internals (#49220) next »