| // +----------------------------------------------------------------------+ // // $Id: is_a.php,v 1.1 2004-10-26 18:22:16 kostja Exp $ // /** * Replace function is_a() * * @category PHP * @package PHP_Compat * @link http://php.net/function.is_a * @author Aidan Lister * @version $Revision: 1.1 $ * @since PHP 4.2.0 * @require PHP 4.0.0 (is_subclass_of) */ if (!function_exists('is_a')) { function is_a ($object, $class) { if (get_class($object) == strtolower($class)) { return true; } else { return is_subclass_of($object, $class); } } } ?>