note 8612 added to function_exists
| From: | dhemphill at silacom dot com | Date: | Thu, 21 Sep 2000 03:08:29 +0000 |
| Subject: | note 8612 added to function_exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5252@lists.php.net to get a copy of this message | ||
This is all well and good but how does one check for an existance of a function that is located
within a class?
function_exists("classname->functionname"); doesn't work, neither does the
functionname on it's own (obviously) I am assuming that the function names get stored in a
symbol table somewhere and when it lies within a class it get prefixed with the class name and
probably some other stuff ... like classname_blahblahblah_functionname. Anyone know the format of
this, cos I assume function_exists just does a lookup in the function symbol table. So if we know
the format then we can call function_exists with it, yeah. Alot of assumptions I am afraid, and no
answers, I would really appreciate if someone could sort this one out form me.
http://www.php.net/manual/function.function-exists.php