Re: PHP editor
| From: | Chris Boget | Date: | Thu, 15 Apr 2004 16:58:31 +0000 |
| Subject: | Re: PHP editor | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183491@lists.php.net to get a copy of this message | ||
> > Not exactly... I was not reffering to PHP files... The white spaces
> > from a template file will make double the size of certain files when
> > they are sent to the browser... So a page of 50 k might have 100 K
> > because of those white spaces instead of tabs... For a dial up
> > connection this means a lot even if you are not google...
> can someone confirm this? this sounds totally wrong.
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 );
Chris