\ r \ n is the output HTML code wrapping, the customer sees the effect does not wrap.
The opposite
Effect:
I am content \ r \ n I am content
I am the content
I am the content
==================================================
\ r means: Carriage return (acsii:13 or 0x0d), which is what we often call a hard return.
\ n means: line break (Acsii:10 or 0x0a), is what we often say the soft return.
These two are not visible on the page. Right-click on the source file to see the code line wrapping
==================================================
If it is output to the browser, use the
If it is output to its own file, use "\ n", under Windows is "\ r \ n"
==================================================
\ n, like you make a Web page in Dreamweaver, click Enter in the source code, is to give the source code line-wrapping.
is to output one (HTML markup language) that is interpreted as the input word wrap in HTML. \ nthe function is to feed the source code, after the input, look at the HTML source code, it will be to have a newline, and the HTML interpreter (browser) that it is useless, use the same display.
==================================================
\ n is the source code line-Wrapping!
is Web page performance wrapping!!
==================================================
Attached: in-depth PHP nl2br () format output detailed
http://www.bkjia.com/PHPjc/327306.html www.bkjia.com true http://www.bkjia.com/PHPjc/327306.html techarticle \ r \ n is the output HTML code wrapping, the customer sees the effect does not wrap. br/The opposite effect: I am content \ r \ n I am content I am content br/I am content ========================== ...