[A] Poorly. Really.
If its an object you may be able to run foreach however your object should provide a function for providing the information about itself.
I think you can [man]print_r[/man] on the object if you're just printing it for debugging but if its part of your script to view then object then you should write a function like display() that returns a string with all the info the class wants to provide (or prints the object within the function, either way ...)
Modularity is a good thing.