Name

is_a

Synopsis

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

Returns true if object is of the class class, or if its class has class as one of its parents; otherwise, returns false. If allow_string is false, then string class name 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.