Re: About "\n"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux