note 32193 added to function.get-defined-functions
| From: | php dot net at schou dot dk | Date: | Tue, 20 May 2003 07:47:42 +0000 |
| Subject: | note 32193 added to function.get-defined-functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48641@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.
$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";
}
}
}
----
Manual Page -- http://www.php.net/manual/en/function.get-defined-functions.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32193
Approve Note -- http://master.php.net/manage/user-notes.php?action=approve+32193&report=yes
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32193&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32193&report=yes