Php code is recorded at line breaks writing
One,"</br>"
"<br/>"浏览器显示换行,源代码显示<br/>
Example:
<?php
echo "Test"."<br/>";
echo "one";
echo "<br/>";
?>
Browser output:
browser source code output:
two,"\n"
"\n"浏览器不显示换行,源代码显示换行
Example:
<?php
echo "Test"."\n";
echo "one";
echo "\n";
?>
The browser displays:
Browser source code display:
Reference:
https://blog.csdn.net/hero_xsx/article/details/81055355