Re: highlight_string()

From: Date: Fri, 25 Jan 2002 11:12:06 +0000
Subject: Re: highlight_string()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78105@lists.php.net to get a copy of this message
On Fri, 25 Jan 2002 11:57:27 +0100, Sebastian Bergmann wrote: > 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(); +1 - Martin

« previous php.dev (#78105) next »