"Jens Nedal" <[EMAIL PROTECTED]> wrote:
> In case of displaying \n that are stored in a variable or com from a DB or
> inptu field you can also use nl2br($var) which automatically converts
those
> linebreaks to <br> and so get displayed correctly.
Good call, Jens.
> Though that will not work
> for the tabs.
For tabs something like this will probably give a tolerable result, though
I've never had a need to try:
$var = str_replace( "\t", str_repeat( " ", 4 ), $var );
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]