get_parent_class

(PHP 4 >= 4.0.0)

get_parent_class -- Retrieves the parent class name for object or class

Description

string get_parent_class (mixed obj)

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() and is_subclass_of()