Home > PHP > Function > Classes/Objects > get_parent_class()

get_parent_class()

get_parent_class - Retrieves the parent class name for object or class

Syntax

string get_parent_class (mixed $object)

Arguments

  • object - The tested object or class name

Description

Retrieves the parent class name for object or class.

Version

PHP 4, 5

Return value

Returns the name of the parent class of the class of which object is an instance or the name.