note 34352 deleted from function.highlight-string by nlopess
| From: | nlopess@php.net | Date: | Wed, 31 Dec 2003 14:48:00 +0000 |
| Subject: | note 34352 deleted from function.highlight-string by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62726@lists.php.net to get a copy of this message | ||
Note Submitter: glox@glox.be
----
I see alot of people using output buffering to get the highlightef source in a variable...
The highlight_string() function has an extra parameter for this:
$code = '<? echo "foo"; ?>';
$code = highlight_string($code,1);
this will highlight the code in $code and return it to the variable $code and not printing it on the
screen !