Re: re:linebreak

From: Date: Wed, 14 Feb 2001 05:41:55 +0000
Subject: Re: re:linebreak
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39584@lists.php.net to get a copy of this message
"Deependra B. Tandukar" <deepndra@icimod.org.np> wrote: > I did with <br>. "\r\n" too is not giving a new line. Actually "\n" does create a newline. If you view the source code of the web page from the browser you'll see that it works. "\n" is not an HTML tag. It's not designed to create a newline in the HTML output sent to the browser. As you discovered, the <BR> tag will do that. Hope that is clear. "\n" is typically used in PHP code so that when one looks at the HTML code sent to the browser one doesn't have to look at lines of HTML code that contain hundreds upon hundreds of characters. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/

« previous php.general (#39584) next »