Re: Help on \t \r \n

From: Date: Sun, 03 Nov 2002 22:47:32 +0000
Subject: Re: Help on \t \r \n
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16702@lists.php.net to get a copy of this message
dee, Use the string function nl2br($myblahstring) This converts ordinary linebreaks (newline chars) to html <br> tags on the fly when displaying text out of a database for instance. In your example though with straight echos you have to expicitly echo <br> at end of each blah echo, no matter what browser is used. CD ----- Original Message ----- From: "dee" <deebaileys@yahoo.co.uk> To: <php-windows@lists.php.net> Sent: Friday, November 01, 2002 12:18 PM Subject: [PHP-WIN] Help on \t \r \n > Can anyone help me on this very simple problem, I'm a newbie, but the > problem seems so simple and it's buggering me. > > I have 423 xp version installed. When trying out how to display any of the > escaped characters e.g. > > echo("<p>blah blah..... \n"); > echo("more blahs..."); > > in an HTML file, with IE6, I get > > blah blah..... more blahs... > > why? -- shall I just forget it and use <br />? > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.windows (#16702) next »