Re: About "\n"
| From: | Jason Barnett | Date: | Wed, 29 Dec 2004 14:55:07 +0000 |
| Subject: | Re: About "\n" | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25203@lists.php.net to get a copy of this message | ||
Graeme wrote:
> Hi,
>
> What the "\n" does is to throw a newline in your source code. So when
> the page is displayed look at the source that has been generated you
> will see the blank line. This can be useful to make the HTML source
> readable. However to get a new line displayed in the browser your need
> to use a <br> tag, or equivalent such as a <p> pair.
>
> graeme.
>
Right. If you are used to the "\n" style of newlines then you can also
use the function nl2br()
http://php.net/manual/en/function.nl2br.php
--
Teach a person to fish...
Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html
PHP Manual: http://php.net/manual/
php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2