ReflectionClass::isInstance Checks class for instance &reftitle.description; public boolReflectionClass::isInstance objectobject Checks if an object is an instance of a class. &reftitle.parameters; object The object being compared to. &reftitle.returnvalues; Returns &true; if the object is an instance of the class, or &false; otherwise. &reftitle.examples; <methodname>ReflectionClass::isInstance</methodname> related examples isInstance($object)) { echo "Yes\n"; } // Equivalent to if ($object instanceof Foo) { echo "Yes\n"; } // Equivalent to if (is_a($object, 'Foo')) { echo "Yes"; } ?> ]]> &example.outputs.similar; &reftitle.seealso; ReflectionClass::isInterface Type operators (instanceof) Object Interfaces is_a