In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
The purpose of this article is to share with you the solution to the problem of not wrapping br lines in php. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Php br doesn't change careers because
This tag acts as a line feed in the browser, but not in the source code; then you need to use the newline operator in the source code to operate on the source code.
This article operating environment: windows7 system, PHP7.1 version, DELL G3 computer
In the line wrapping operation of php,\ nThe difference between and
Blogger I came across a situation today when I wrote a newline operator in php code, thinking that the output rendered in the browser was a newline, but I didn't expect it. The code is as follows:
If you change the middle newline operator to, the result rendered by the browser will wrap
Why did it end up like this? Let's analyze the source code from the source code, right-click on the Firefox browser to view the page source code, and we will find that in the first case mentioned above, branches will appear in the source code.
And in the second case mentioned above, except for one.
There is no line break outside the label.
Thus we can draw a conclusion: in php,\ nThe newline operator operates on the source code and has no effect in the browser;
This tag acts as a line wrap in the browser, and the tag appears in the source code, but not in the source code.
Thank you for reading! This is the end of this article on "the solution of not changing br lines in php". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.