From 1234fe480b6895cade047bea2b5b25bd7e1620b6 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Sat, 25 Nov 2000 05:24:06 +0000 Subject: [PATCH] Added a simple usage example and a pointer to the method_exists() function. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@36580 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/funchand.xml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/functions/funchand.xml b/functions/funchand.xml index 15410c21c6..f630082152 100755 --- a/functions/funchand.xml +++ b/functions/funchand.xml @@ -373,11 +373,23 @@ foo (1, 2, 3); // Prints 'Number of arguments: 3' string function_name - + Checks the list of defined functions for function_name. Returns true if the given function name was found, false otherwise. - + + +if (function_exists('imap_open')) { + echo "IMAP functions are available.<br>\n"; +} else { + echo "IMAP functions are not available.<br>\n"; +} + + + + + See also method_exists. +