PHP Manual
/
Functions

Get a list of all defined functions

10. 04. 2021

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 internal functions 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.

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
2.
Status:
All systems normal.
2024