I have a class instance, and I want to enumerate its members.
How can this be done?
You can use get_class_vars(), or get_object_vars() if you are looking at an instance.
get_class_vars()
get_object_vars()
You could also use reflection.