O'Reilly logo

Programming PHP, 3rd Edition by Peter MacIntyre, Kevin Tatroe, Rasmus Lerdorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required