PHP get_defined_functions() function

Description

Returns an array of all defined functions.

Syntax

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

Example

Get all functions


<?php/* ww  w . ja  va2 s  . c o  m*/
function my(){
    return "java2s.com";
}

$arr = get_defined_functions();

print_r($arr);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions