is_subclass_of
Intervention/image
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