September 2001
Intermediate to advanced
768 pages
32h 45m
English
array get_defined_functions(void)
Lists defined functions.
Returns:
Array of functions; FALSE on error
Description:
Gets a list of all defined functions, both internal (in PHP) and user-defined. The function returns an associative array containing two elements, internal and user. The internal element lists all PHP internal functions (which is a very large list); the user element shows all user-defined functions available to the script calling the function.
Availability:
UNIX, Windows
Version:
4.0.4+
Example:
<pre> <?php function test_function() { return TRUE; } $funclist = get_defined_functions(); echo "User functions\n"; print_r($funclist['user']); echo "\n\n"; echo "Internal functions\n"; print_r($funclist['internal']); ... |
Read now
Unlock full access