Re: ArrayObject - Posibillity to add key => value pair per default?

From: Date: Wed, 14 Jan 2009 15:27:49 +0000
Subject: Re: ArrayObject - Posibillity to add key => value pair per default?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-286314@lists.php.net to get a copy of this message
On Wed, Jan 14, 2009 at 6:18 AM, Edgar da Silva (Fly2k) < silva.edgar@gmail.com> wrote: > Did you try: > > $a = new ArrayObject; > $a['sometest'] = 'somevalue'; > its also worth pointing out, the above syntax is available b/c ArrayObject implements the ArrayAccess interface. http://www.php.net/~helly/php/ext/spl/interfaceArrayAccess.html -nathan

« previous php.general (#286314) next »