highlight_string()
| From: | Sebastian Bergmann | Date: | Fri, 25 Jan 2002 10:57:27 +0000 |
| Subject: | highlight_string() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-78102@lists.php.net to get a copy of this message | ||
Could highlight_string() be changed to (optionally) return the
highlighted string?
The following works, but is IMHO overhead
ob_start();
highlight_string($string);
$string = ob_get_contents();
ob_end_clean();
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/