Home > PHP > Function > Function Handling > get_defined_functions()

get_defined_functions()

get_defined_functions - Returns an array of all defined functions

Syntax

array get_defined_functions ()

Arguments

-

Description

Gets an array of all defined functions.

Version

PHP 4.0.4, 5

Return value

Returns an multidimensional array containing a list of all defined functions, both built-in (internal) and user-defined. The internal functions will be accessible via $arr["internal"], and the user defined ones using $arr["user"] (see example below).