RE: [PHP] Array of objects

2005-05-06 Thread Thomas Hochstetter
Thanks, will do ;-) (as of this mail) -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 03:08 PM To: Thomas Hochstetter Cc: [php] PHP General List Subject: Re: [PHP] Array of objects Thomas Hochstetter wrote: > Hi Jochem, > > Thanks for that.

Re: [PHP] Array of objects

2005-05-06 Thread Jochem Maas
Maas [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 01:17 PM To: Thomas Hochstetter Cc: php-general@lists.php.net Subject: Re: [PHP] Array of objects Thomas Hochstetter wrote: Spiraleye.Studios Hi there, I need help with arrays. What I want to do is to have an array of the following structure: $

Re: [PHP] Array of objects

2005-05-06 Thread Jochem Maas
Thomas Hochstetter wrote: Spiraleye.Studios Hi there, I need help with arrays. What I want to do is to have an array of the following structure: $mod=array( ‘name’=>new NameObject()); ^ -- looks like your single quotes got mangled in my email client. class Test { function Test($st

[PHP] Array of objects

2005-05-06 Thread Thomas Hochstetter
  Hi there, I need help with arrays. What I want to do is to have an array of the following structure: $mod=array( ‘name’=>new NameObject()); Then later in the page I want to go $Site = $mod[$_GET[‘module’]] (or something like that) to instantiate a new object.

[PHP] array of objects???

2002-05-10 Thread J. Anderson Scarbrough
I have two classes. Organization and users. In the organization class I am try to keep an array of user objects but it does not seem to be taking. Can any help? See code below. class Organization { var $users = array(); function AddUser($oUser) { array_push($this->users,