note 41065 deleted from function.show-source by aidan

From: Date: Sun, 26 Sep 2004 14:10:31 +0000
Subject: note 41065 deleted from function.show-source by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77391@lists.php.net to get a copy of this message
Note Submitter: michael atnospam keeper.as ---- 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)); ?>

« previous php.notes (#77391) next »