function_exists
<<<
get_defined_functions register_shutdown_function
>>>

7.33 Fonctions
7 Index des fonctions
 Manuel PHP

. Introduction
. Pré-requis
. Installation
. Configuration à l'exécution
. Constantes prédefinies
. call_user_func_array
. call_user_func
. create_function
. func_get_arg
. func_get_args
. func_num_args
. function_exists
->get_defined_functions
. register_shutdown_function
. register_tick_function
. unregister_tick_function

7.33.13 get_defined_functions() Liste toutes les fonctions définies

[ Exemples avec get_defined_functions ]   PHP 4 >= 4.0.4

array  get_defined_functions ( void )

get_defined_functions retourne un tableau multi- dimensionnel, contenant la liste de toutes les fonctions définies, aussi bien les fonctions internes à PHP que celle déjà définie par l'utilisateur. Les noms des fonctions internes sont accessibles via $arr["internal"] , et les fonctions utilisateur sont accessibles via $arr["user"] .
Exemple avec get_defined_functions

<?php
  
function maligne($id, $data) {
    return
"<tr><th>$id</th><td>$data</td></tr>\n";
  }
  
$arr = get_defined_functions();
  
print_r($arr);
?>

Voir aussi get_defined_vars et get_defined_constants .

<< get_defined_functions >>
function_exists Fonctions register_shutdown_function