get_parent_class
Retrieves the parent class name for object or class
Description
stringget_parent_class
mixedobj
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.
Using get_parent_class
]]>
The output is:
See also get_class and
is_subclass_of.