note 41065 added to function.show-source
| From: | michaelatnospamkeeper dot as at rn2 dot php dot net | Date: | Mon, 29 Mar 2004 11:17:59 +0000 |
| Subject: | note 41065 added to function.show-source | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67314@lists.php.net to get a copy of this message | ||
For some reason my first post never made it to the list, so here it goes again:
<?php
/*
* A little modification of http://iubito.free.fr's
code to transform
* all functions to links (used together with show_source/highlight_string) to the php.net-manual.
*
* My version does also "fetch" control-structures.
*/
$str = preg_replace(
'{([\w]+)(\s*</font><font\s+color="'
.ini_get('highlight.keyword').'">|)(\s*\()}',
'<a class="phpfunction" target="_blank" title="doc PHP
$1"'
.' href="http://www.php.net/$1">$1</a>$2$3'
, highlight_string($YOUR_STRING, true));
?>
----
Manual Page -- http://www.php.net/manual/en/function.show-source.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41065
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41065&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41065&report=yes
Search -- http://master.php.net/manage/user-notes.php