<?php phpinfo(); echo "<h1> Les fonctions définies</h1>\n"; $ref_docs = "[www.php.net];; $tableau = get_defined_functions(); echo "<ul>\n"; while (list($type,$list) = each($tableau)) { if ($type == "internal" && is_array($list)) { sort($list); foreach ($list as $func) { if ($func == "_"$func2 = "gettext"; else $func2 = preg_replace("/_/", "-", $func); echo "<li><a href=\"$ref_docs.$func2.php\">$func</a>"; if(!function_exists($func)) echo " ----- fonction <i>".$func."</i> n'existe pas ------"; echo "</li>\n"; } } } echo "</ul>\n"; ?>