From 4389459003b611e4802c6ba51fb387c693fb40aa Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sun, 17 Mar 2002 22:01:07 +0000 Subject: [PATCH] function_exists: * Works on both internal/user defined functions. * See also get_defined_functions. * Implemented &return.success; * Should we expand on when this "won't work", like with certain image functions? git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@73823 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/funchand.xml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/functions/funchand.xml b/functions/funchand.xml index 98b867d56a..201af968a6 100755 --- a/functions/funchand.xml +++ b/functions/funchand.xml @@ -1,5 +1,5 @@ - + Function Handling functions Functions @@ -427,9 +427,8 @@ foo (1, 2, 3); // Prints 'Number of arguments: 3' stringfunction_name - Checks the list of defined functions for - function_name. Returns &true; if the given - function name was found, &false; otherwise. + Checks the list of defined functions, both built-in (internal) and + user-defined, for function_name. &return.success; - Note that a function name may exist, even if the function itself - is unusable due to configuration or compiling options. + Note that a function name may exist even if the function itself + is unusable due to configuration or compiling options (with the + image functions being an example). + Also note that function_exists will return + &false; for constructs, such as include_once + and echo. - See also method_exists. + See also method_exists and + get_defined_functions.