Maybe: > First some basic questions: > (1) Can you create an unitialised array ? $an_array = array();
> (2) Can an unitinialised array be a class member variable ? > > My problem is this: > > I have a class called "user" - which represents one row in a mySQL table > (also called user) > class userBag { var $users = array(); function userBag($sql) { $result = somedb_query($sql); while($udata = somedb_fetch_object($result)) $this->users[] = $udata } } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]