instanceof equivalent for a string-represented classname
Using the Reflection API, you can construct a ReflectionClass object using the name of the class as well as an object.
Try is_subclass_of()
. It can accept both parameters as strings. http://php.net/manual/en/function.is-subclass-of.php
Looks like this is my answer: is_subclass_of
It can accept both parameters as strings
http://php.net/manual/en/function.is-subclass-of.php