note 19727 added to function.is-a

From: Date: Fri, 08 Mar 2002 21:10:37 +0000
Subject: note 19727 added to function.is-a
Groups: php.notes 
Request: Send a blank email to php-notes+get-27528@lists.php.net to get a copy of this message
php implementation to keep us happy for now if (!function_exists('is_a')) { function is_a($classname, $classquery) { $father = get_parent_class($classname); if (strtolower($father) == strtolower($classquery)) { return true; } elseif (!empty($father)) { return is_a($father, $classquery); } else { return false; } } } -- http://www.php.net/manual/en/function.is-a.php http://master.php.net/manage/user-notes.php?action=edit+19727 http://master.php.net/manage/user-notes.php?action=delete+19727 http://master.php.net/manage/user-notes.php?action=reject+19727

« previous php.notes (#27528) next »