is_a

PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
is_a - Checks if the object is of this class or has this class as one of its parents
Manual
Code Examples

Example #1 is_a example

PHP Version:

Example #2 Using the instanceof operator

PHP Version:


Function is_a:

Class/Object Information Functions

Most used PHP functions