This article provides a detailed analysis of the differences between br and rn.
This article provides a detailed analysis of the differences between br/and \ r \ n. For more information, see
\ R \ n is the line feed of the output HTML code, and the effect the customer sees is not a line break.
The opposite
Effect:
I am content \ r \ n I am content
I am content
I am content
========================================================== ============
\ R: The carriage return (acⅱ: 13 or 0x0d) is what we often call a hard carriage return.
\ N indicates a line feed (acⅱ: 10 or 0x0a). The Hong Kong server is what we often call a soft carriage return.
On the page, the two cannot see the effect. Right-click to view the source file and you can see the code line feed.
========================================================== ============
If it is output to the browser, use
If it is output to your own file, use "\ n" and "\ r \ n" in windows"
========================================================== ============
\ N is like creating a webpage in DreamWeaver. Press enter in the source code to wrap the source code.
Is the output (HTML Markup Language), which is interpreted as a line break in HTML. \ N is used to wrap the source code. After the input, the Hong Kong server will view the HTML source code, and the line feed will be displayed on the Hong Kong virtual host, while the HTML interpreter (browser) I think it is useless.
========================================================== ============
\ N is a line feed of source code!
It is a line break on the webpage !!
========================================================== ============
Appendix: in-depth explanation of PHP nl2br () Formatting output