Menu
Samaritan's Purse

GET_PARENT_CLASS

Retrieves the parent class name for object or class

SYNTAX

get_parent_class ([ mixed $object ] ) : string

PARAMETERS

object

The tested object or class name. This parameter is optional if called from the object's method.

RETURN

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

Note: If the object does not have a parent or the class given does not exist FALSE will be returned.

If called without parameter outside object, this function returns FALSE.

EXAMPLES

VOID

I am myfather's son.

OBJECT

I am myfather's son.
I am myfather's son.

PHP