maybe this article will help out
http://www-128.ibm.com/developerworks/o ... DynamicPHP
Dynamic Class
Moderator: General Moderators
there is a function to get all the vars of an object/class.
get_object_vars (gets current object vars)
and
get_class_vars (gets class default vars)
get_object_vars (gets current object vars)
and
get_class_vars (gets class default vars)