Re: [PHP] Array of Classes

2003-10-06 Thread Rob Wiltbank
Cheers! Just what I was looking for. :) Rob "David Otton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 6 Oct 2003 13:41:22 -0400, you wrote: > > >1) How can I create an array of classes so they could be referenced, for > >instance: $array[$uniqueID][$class->var] = 10; ? >

Re: [PHP] Array of Classes

2003-10-06 Thread David Otton
On Mon, 6 Oct 2003 13:41:22 -0400, you wrote: >1) How can I create an array of classes so they could be referenced, for >instance: $array[$uniqueID][$class->var] = 10; ? > >2) Would it instantiate when that particular element was used and would the >constructor run at that point? > >3) Any way to

[PHP] Array of Classes

2003-10-06 Thread Rob Wiltbank
Greetings.. Doing some persistant connection socket-based PHP stuff and I'm trying to figure out a few things: 1) How can I create an array of classes so they could be referenced, for instance: $array[$uniqueID][$class->var] = 10; ? 2) Would it instantiate when that particular element was used a

[PHP] Array of classes

2001-10-30 Thread Andrzej Roszkowski
Hi! I have to create array of classes. When I do it this way: f add($sth) $this->array[] = $sth; it doesn't work :( when i'm trying to get class from there it says that this is not an object. How to do it rigth way?