Menu Samaritan's Purse

FUNCTION_EXISTS

Return TRUE if the given function has been defined

SYNTAX

function_exists ( string $function_name ) : bool

PARAMETERS

function_name

The function name, as a string.

RETURN

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.

EXAMPLES

1

PHP