Keyword To Link Function ?
Not sure I fully understand the idea. Do you mean something like the following?
It's built around a simple function to convert a PHP function keyword into an HTML hyperlink string to the corresponding PHP manual page.
It wouldn't be too difficult to create a button to go directly to the PHP manual when clicked.
To demonstrate the function, the generated link is displayed on the page.
Code:
<?PHP
$keyword = @$_POST['keyword'];
$link = Keyword_To_Link ($keyword);
print <<< _HTML
<!DOCTYPE HTML PUBLIC "-//W*C//DTD HTML 4.0* Transitional//EN"
"http://www.w*.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-885*-*">
<TITLE>Lookup PHP Keyword</TITLE>
</HEAD>
<BODY>
<FORM NAME="KeywordForm" METHOD="post" ACTION="kw.php">
<TABLE WIDTH="264" BORDER="*">
<TR><TD COLSPAN="2" ALIGN="CENTER"><B>Enter PHP Function Keyword</B></TD></TR>
<TR>
<TD WIDTH="**2"><INPUT NAME="keyword" TYPE="text" SIZE="*2" MAXLENGTH="*2" VALUE="$keyword"></TD>
<TD WIDTH="56"><INPUT TYPE="submit" NAME="Submit" VALUE="Make Link"></TD>
</TR>
</TABLE>
<P>$link</P>
</FORM>
</BODY>
</HTML>
_HTML;
function Keyword_To_Link ($KeywordArg)
{
$BaseURL = "http://us2.php.net/manual/en/";
$keyword = StrToLower(trim($KeywordArg));
$HLink = "<A HREF=\"$BaseURL" . "function.$keyword.php\">$keyword</A>";
return $HLink;
}
?>
Oh to be free, so blissfully free, of the ravages of intelligence, there is no greater joy! - The Cweationist's Cweed
All that is necessary for evil to triumph is a good PR firm.
Very funny, Scotty. Now beam down my clothes!