Re: PHP editor
| From: | Greg Donald | Date: | Thu, 15 Apr 2004 17:04:41 +0000 |
| Subject: | Re: PHP editor | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183493@lists.php.net to get a copy of this message | ||
On Thursday 15 April 2004 11:58 am, Chris Boget wrote:
> Why does it sound totally wrong? A tab is a single character whereas
> 2 spaces are 2 characters.
>
> 1 x 50k = 50k
> 2 x 50k = 100k
>
> Try the following code:
>
> echo str_repeat( " ", 50000 );
>
> or
>
> echo str_repeat( "\t", 50000 );
Remove all whitespace from the final HTML, then all this doesn't matter.
function cleanFinalOutput($html){
$return = eregi_replace("\n", "", $html);
$return = eregi_replace("\r", "", $return);
return eregi_replace("\t", "", $return);
}
--
Greg Donald
destiney@destiney.com