In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
No matter how to solve php eol, I believe many inexperienced people don't know what to do about it. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
The solution that php eol does not work: 1, open the corresponding code file; 2, add the code "echo" before the EOL statement; "do text formatting processing. This article operating environment: Windows7 system, PHP7.1, Dell G3 computer.
What if php eol doesn't work?
PHP_EOL is a new line of text, not a html line. Add echo ";" in front of the text format processing, the following PHP_EOL will work.
Specific analysis:
First, for browsers, text wrapping is achieved by using tags. Usually, text wrapping in a file cannot be displayed in the browser as usual, and is only valid for text files.
The results generated by the PHP script still need to be displayed in the browser, so if you want to wrap lines, try to use
This kind of html tag is done.
Second, you can look at the source code to see if PHP_EOL is working.
After reading the above, have you mastered php eol no matter how to solve it? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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: 251
*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.