diff --git a/functions/classobj.xml b/functions/classobj.xml index 02a1ad29fe..bd4a6c7ce7 100644 --- a/functions/classobj.xml +++ b/functions/classobj.xml @@ -1,5 +1,5 @@ - + Class/Object Functions Classes/Objects @@ -616,23 +616,28 @@ print_r(get_object_vars($p1)); get_parent_class - Returns the name of the parent class of an object + Retrieves the parent class name for object or class Description string get_parent_class - object obj + mixed obj - This function returns the name of the parent class to - the class of which the object obj - is an instance. + If obj is an object, returns the name of the + parent class of the class of which obj is an + instance. + + + If obj is a string, returns the name of the parent + class of the class with that name. This functionality was added in PHP + 4.0.5. - See also get_class, + See also get_class and is_subclass_of