PHP Tutorial - PHP get_defined_functions() function

Returns an array of all defined functions.


array get_defined_functions ( void )

Return Values

Returns a 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"].


Get all functions

function my(){
    return "";

$arr = get_defined_functions();


The code above generates the following result.