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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 14, 2009 at 6:18 AM, Edgar da Silva (Fly2k) <
silva.edgar@xxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux