note 32193 approved from function.get-defined-functions by alindeman
| From: | alindeman@php.net | Date: | Tue, 20 May 2003 11:27:55 +0000 |
| Subject: | note 32193 approved from function.get-defined-functions by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48649@lists.php.net to get a copy of this message | ||
This note has been approved and will appear in the manual
----
Here is another example which list all the available functions and gives a link to the manual pages
at the same time.
$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";
}
}
}