Get a list of all defined functions
Sometimes it can be useful to get a list of all available features on the current environment. This is especially the case when we are managing someone else's server and need to get our bearings.
The list of functions can be obtained by calling the get_defined_functions() function, which returns data in the form of an array:
[
internal => [
...,
],
user => [
...,
]
]
The list of functions is in fact divided into two large lists.
- The
internalfunctions are those defined by PHP itself and the installed extensions. - User (
user) functions are those defined by the user code itself. These are any functions that we have written into the source code, or that are included in the installed libraries.
This list can be well used to debug an application.