Re: whitespace...

From: Date: Wed, 04 Sep 2002 23:45:41 +0000
Subject: Re: whitespace...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115254@lists.php.net to get a copy of this message
Hi, You should use $content = str_replace(" ","",$content); I assume that works, there is probably something better than it too but thats all I see at this hour. -- Nicos - CHAILLAN Nicolas nicos@php.net www.WorldAKT.com - Hébergement de sites Internet "Matt Zur" <mattz@zurnet.com> a écrit dans le message de news: 3D769950.7000802@zurnet.com... > How do I remove the whitespace from a document? I consulted the manual > and it said to use the trim function. But in a large PHP document, with > lots of fuctions etc in PHP... is there a simple way to compress the > whitespace of the entire document? Rather than going through each var > and using the trim? Like add a header at the top: <?PHP > compresswhitespace() ?> > > > If you have a 300k php document, won't the source code reveal (after the > browser displays the page) a bunch of whitespace. Doesn't this add to > dl time and if so, how do I get rid of it. > > TIA, > > -Matt > > > > > -- > Matt Zur > mattz@zurnet.com > http://www.zurnet.com > > Need a Web Site??? - Visit... www.zurnet.com > > 1997 - 2002 - 5th Anniversary!!! >

« previous php.general (#115254) next »