Logo

Classes/Obje Functions

class_alias class_exists enum_exists get_called_class get_class get_class_methods get_class_vars get_declared_classes get_declared_interfaces get_declared_traits get_mangled_object_vars get_object_vars get_parent_class interface_exists is_a is_subclass_of method_exists property_exists trait_exists

is_subclass_of

Logo PHPCompatibility/PHPCompatibility PHPCompatibility/PHPCompatibility
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks if the object has this class as one of its parents or implements it
<?php is_subclass_of(mixed $object_or_class, string $class, bool $allow_string = true): bool