function_exists

 bool function_exists ( string $function_name ) 

説明

Checks the list of defined functions, both built-in (internal) and user-defined, for function_name.

戻り値

Returns TRUE if function_name exists and is a function, FALSE otherwise. Note: This function will return FALSE for constructs, such as include_once() and echo().