Retrieves the parent class name for object or class.
Returns the name of the parent class of the class of which
object
is an instance or the name.
If called without parameter outside object, this function returns FALSE.
Version | Description |
---|---|
Before 5.1.0 | If called without parameter outside object, this function would have returned NULL with a warning. |
Since 5.0.0 |
The object parameter is optional if called
from the object's method.
|
Since 4.0.5 |
If object is a string, returns the name of the
parent class of the class with that name.
|