How to use line breaks and\ n or\ r\ n and br in php code
This article mainly introduces how to use line breaks and\ r\ n and br in php code. It is very detailed and has certain reference value. Friends who are interested must read it!
Code a:
Output:
Helllo
World!
Code b:
Output:
Helloworld!
Analysis: the browser cannot recognize\ n or\ r\ n, these two newline characters are text newline characters, and the text file is valid; looking at the HTML source code in the web page, we can find that the code b successfully implements the line feed.
The above is all the contents of the article "how to use line breaks and\ n or\ r\ n and br in php code". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!