note 32193 deleted from function.get-defined-functions by philip

From: Date: Sat, 02 Jul 2011 12:43:37 +0000
Subject: note 32193 deleted from function.get-defined-functions by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181162@lists.php.net to get a copy of this message
Note Submitter: php dot net at schou dot dk ---- Here is another example which list all the available functions and gives a link to the manual pages at the same time. <?php $manref = "http://www.php.net/manual/en/function"; $arr = get_defined_functions(); while (list($type,$list) = each($arr)) { if ($type == "internal" && is_array($list)) { sort($list); foreach ($list as $func) { if ($func == "_") $func2 = "gettext"; else $func2 = preg_replace("/_/", "-", $func); echo "<a href=\"$manref.$func2.php\">$func</a><br>\n"; } } } ?>

« previous php.notes (#181162) next »