$methods = get_class_methods(classname);
$properties = get_class_vars(classname);
The class name can be a bare word, a quoted string, or a variable
containing the class name:
$class = 'Person';
$methods = get_class_methods($class);
$methods = get_class_methods(Person); // same
$methods = get_class_methods('Person'); // same
The array returned by get_class_methods( ) is a
simple list of method names. The associative array returned by
get_class_vars( ) maps property names to values
and also includes inherited properties. One quirk of
get_class_vars( ) is that it returns only
properties that have default values; there's no way
to discover uninitiailized properties.
Use get_parent_class( ) to find a
class's parent class:
$superclass = get_parent_class(classname);