note 17244 modified in function.get-defined-functions by sander
| From: | sander@php.net | Date: | Mon, 06 May 2002 11:08:18 +0000 |
| Subject: | note 17244 modified in function.get-defined-functions by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-30258@lists.php.net to get a copy of this message | ||
[Ed. note: it might be easier to use the function function_exists() instead]
The whitespace is actually a null, not a space. To see if a user function is defined, try the
following:
if (in_array($func, $funcs['user']) or in_array("$func\0",
$funcs['user'])) ...
(I'm testing for both, since I'm guessing this bug will go away in a future version, if it
hasn't already.)
--was--
The whitespace is actually a null, not a space. To see if a user function is defined, try the
following:
if (in_array($func, $funcs['user']) or in_array("$func\0",
$funcs['user'])) ...
(I'm testing for both, since I'm guessing this bug will go away in a future version, if it
hasn't already.)
http://www.php.net/manual/en/function.get-defined-functions.php