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.
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:
$
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
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.
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,
5 matches
Mail list logo