Name

is_subclass_of

Synopsis

bool is_subclass_of(object object, string class [, bool allow_string ])

Returns true if object is an instance of the class class or is an instance of a subclass of class. If not, the function returns false. If the allow_string parameter is set to false, class “as object” is not allowed.

Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.