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().