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

2009-01-14 Thread Nathan Nobbe
On Wed, Jan 14, 2009 at 9:20 AM, Edmund Hertle < edmund.her...@student.kit.edu> wrote: > > Edmund Hertle schrieb: > > > > Hey, > >> I've just discovered the ArrayObject class, but it seems to not be well > >> documented, so here is my problem: > >> > >> You can use ArrayObject::append() to add a

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

2009-01-14 Thread ceo
In olden times, of PHP 3, you could for sure use ->x and [x] interchangeably, as an Object then was little more than a C struct with a couple functions tacked on, as was an array. I think PHP 3 Object may actually have been implemented as a PHP array with some additional C functions on it, c

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

2009-01-14 Thread Edmund Hertle
> Edmund Hertle schrieb: > > Hey, >> I've just discovered the ArrayObject class, but it seems to not be well >> documented, so here is my problem: >> >> You can use ArrayObject::append() to add a new value to the array, but is >> there also a method to add a new key and value? >> >> And I know tha

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

2009-01-14 Thread Carlos Medina
Edmund Hertle schrieb: Hey, I've just discovered the ArrayObject class, but it seems to not be well documented, so here is my problem: You can use ArrayObject::append() to add a new value to the array, but is there also a method to add a new key and value? And I know that I could extend the cla