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.
Since PHP 5, obj is optional if called from the
object's method.
If called without parameter outside object, this function returns
&false; (or &null; with a warning before PHP 5.1.0).
Using get_parent_class
]]>
&example.outputs;
See also get_class and
is_subclass_of.