Re: Re: Including text with PHP and keeping blanks

From: Date: Tue, 17 Jun 2003 00:16:21 +0000
Subject: Re: Re: Including text with PHP and keeping blanks
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-151760@lists.php.net to get a copy of this message
Hugh Bothwell wrote:
echo "<pre>$mytext</pre>";        //  ;-)
Unless you are going to render to a fixed-width font, your spacing will suffer anyway... or do you only care about left-hand spaces, ie for indenting? Thanks!
I did not know about the <pre> tag, but this was what I needed (and yes, I only really care about indenting)!. Fredrik.

« previous php.general (#151760) next »