Might just be a typo, but in the function prototype for AddUser(), you have 
$oUser, but the array_push() argument says $objUser.

J



J. Anderson Scarbrough wrote:

> 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, $objUser);
>     }
> 
>     function numberOfUsers()
>     {
>         return count($this->users);
>     }
> 
> }
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to