Is_a Function in PHP
Is a function in php which checks if a given object is of a particular class or has that class as one of its parents, otherwise it returns FALSE.
In php OOP the is_a function is used to check if an object is an instance of a class. This is different from the instanceof operator which can also take a string as parameter 1 (to identify a possible class name) and an object as parameter 2. The is_a function will be slower in performance since it has all the overhead of executing a function call, but it is very effective when it comes to finding out if an object is an instance of n php class.
Update: Since php version 5.3.7 is_a() behavior have changed. Now if the first parameter is a string it will be treated as a possible class name and raised to autoload if needed. This is to avoid issues in applications which were relying on the old behavior.