note 19727 deleted from function.is-a by didou

From: Date: Thu, 03 Jul 2003 14:18:15 +0000
Subject: note 19727 deleted from function.is-a by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-51449@lists.php.net to get a copy of this message
Note Submitter: dan at mojavelinux dot com ---- 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; } } }

« previous php.notes (#51449) next »