Forum Moderators: coopster

Message Too Old, No Replies

.phps function links

         

kindacheezy

6:00 am on Aug 20, 2003 (gmt 0)

10+ Year Member



I am writing a sequence of php tutorials and for the code output I am using .phps. I there a way to tell php to put a link to php.net/… for each function I use in my code?
Example echo() would give me a link to www.php.net/echo

coopster

12:20 pm on Aug 20, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If you are talking about hyperlinking from your tutorial pages, you would have to program the code. I would opt for a function to build each link:

<?php
function make_hyperlink($php_function) {
$php_hyperlink = "<a href=\"http://www.php.net/$php_function\">$php_function</a>";
return $php_hyperlink;
}
?>
<html><head><title>Title</title><head><body><p>
This is the <?php print make_hyperlink('rtrim');?> function.
</p></body></html>