, Arpad Ray * @link http://php.net/function.is_a * @author Aidan Lister * @version $Revision: 1.18 $ * @since PHP 4.2.0 * @require PHP 4.0.0 (user_error) (is_subclass_of) */ function php_compat_is_a($object, $class) { if (!is_object($object)) { return false; } if (get_class($object) == strtolower($class)) { return true; } else { return is_subclass_of($object, $class); } } // Define if (!function_exists('is_a')) { function is_a($object, $class) { return php_compat_is_a($object, $class); } }