get_parent_class()
function get_parent_class(mixed $object_or_class = null): string
Returns the name of the parent class of an object or class.
Parameters:
$object_or_class(mixed), defaultnull, optional
Returns: string
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how get_parent_class is implemented in the compiler, see the internals page.