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.
internal
functions are those defined by PHP itself and the installed extensions.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:
Články píše Jan Barášek © 2009-2024 | Kontakt | Mapa webu
Status | Aktualizováno: ... | en