Cameron Just wrote: > Hi, > > Is this a bad thing to do have a class stored within another class? > > I would also like to store an array of another class within a class. > > It seems to work apart from the fact that I can't reference an array of > class directly. > ie > $test_array[0]->get(); > This gives an error.
There is nothing wrong storing array of classes in a class. $obj->array_of_obj[0]->method() works. or array of classes $array_of_obj[0]->method(). works. -- Yasuo Ohgaki -- 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]