Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Class Instance Variables 1

Status
Not open for further replies.

Michael42

Programmer
Joined
Oct 8, 2001
Messages
1,454
Location
US
Hello,

What is the easiest way to display all a Classes instance variables (and values) without hard coding each one?

Thanks,

Michael42
 
print_r() looks really cool!

Please give me an example of how to use it to output all the instance variables of say a class called MyReports.


Thanks again for your help,

Michael42
 
>> Instantiate the class into a variable.
>> Pass the variable to print_r()

Yes, of course!!! Thanks. I was making it too hard (again). :-)

Michael42

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top