note 32193 modified in function.get-defined-functions by danbrown
| From: | danbrown@php.net | Date: | Sat, 19 Jul 2008 21:58:29 +0000 |
| Subject: | note 32193 modified in function.get-defined-functions by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141774@lists.php.net to get a copy of this message | ||
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";
}
}
}
?>
--was--
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";
}
}
}
http://php.net/manual/en/function.get-defined-functions.php