note 29061 added to function.method-exists

From: Date: Fri, 31 Jan 2003 19:47:43 +0000
Subject: note 29061 added to function.method-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-43217@lists.php.net to get a copy of this message
Though, as Bejamin noted, it's not possible to use the class name in method_exists within the class definition, get_class_methods delivers the method names for a given class name even inside the class. Thus another workaround for the mentioned problem is to use in_array(<method_name>, get_class_methods(<class_name>)) -- http://www.php.net/manual/en/function.method-exists.php http://master.php.net/manage/user-notes.php?action=edit+29061 http://master.php.net/manage/user-notes.php?action=delete+29061 http://master.php.net/manage/user-notes.php?action=reject+29061

« previous php.notes (#43217) next »