Since you didnt include the code for InsideClass, i can only assume that you're probably getting errors becuase "$bob" is not initialized anywhere.
--- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -----Original Message----- > From: James Edgar [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 5:27 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Is this possible > > > I am trying to run a class inside a class, it says that the > object is there but when I go to get the info, it is not > there. I have attached the code below. Any help would be > greatly appreciated. > > class myfirstClass > { > > > function Track($tracknum) > { > include("insideclass.inc"); > > $obj = new InsideClass($data,"bob"); > > if (is_object($obj)) > { > print("Yes"); // It will print this > } > else > { > print("No"); > } > > ///////// below we will see the status of the > result //////// > for($i=0;$i<sizeof($bob["Whatever"]);$i++) > { > $nine = > $bob["Whatever_whaterver"][$i]->Whatever[0] . "\n"; > } > > echo($nine); // Does not echo anything. > > } // end func > > } // end class > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php