is_subclass_of
Checks if the object has this class as one of its parents or implements it
&reftitle.description;
boolis_subclass_of
mixedobject_or_class
stringclass
boolallow_string&true;
Checks if the given object_or_class has the class
class as one of its parents or implements it.
&reftitle.parameters;
object_or_class
A class name or an object instance. No error is generated if the class does not exist.
class
The class name
allow_string
If this parameter set to false, string class name as object_or_class
is not allowed. This also prevents from calling autoloader if the class doesn't exist.
&reftitle.returnvalues;
This function returns &true; if the object object_or_class,
belongs to a class which is a subclass of
class, &false; otherwise.
&reftitle.examples;
is_subclass_of example
]]>
&example.outputs;
is_subclass_of using interface example
]]>
&example.outputs;
&reftitle.notes;
¬e.uses-autoload;
&reftitle.seealso;
get_class
get_parent_class
is_a
class_parents