What's wrong with this PHP code?

  • Thread starter Thread starter Chris G
  • Start date Start date
C

Chris G

Guest
I have written this:

<?php
$function = get_defined_functions();
echo "<ul>\n";
foreach($function as $key => $value):
*foreach($value as $func):
**echo "<li><a href=\"http://www.php. net/manual/en/function.${func}.php\" title=\"${func}\" target=\"_blank\">${func}</a></li>\n";
*endforeach;
endforeach;
echo "</ul>\n";
?>

It works, but near the end of the list of functions it looks like it begins encoding the function names... I can't see why that would be...

Any help would be greatly appreciated!
 
Back
Top