This article gives a detailed analysis of the differences between & quot; & lt; br & gt; & quot; and & quot; rn & quot, if you need a friend, refer to \ r \ n as the output HTML code line feed. the effect the customer sees is not line feed.
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), which is 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, you can view the HTML source code to see a line break. The HTML interpreter (browser) thinks it is useless, it is displayed in the same way.
========================================================== ============
\ 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