<?php
echo "this\n is\r a\t string.~!@#123456";
?>书上所写的结果为:
this
is
a string.~!@#123456运行结果却是:this is a string.~!@#123456
为什么呢?
echo "this\n is\r a\t string.~!@#123456";
?>书上所写的结果为:
this
is
a string.~!@#123456运行结果却是:this is a string.~!@#123456
为什么呢?
如果没有声明,浏览器默认按html解析,html中只会对相关标签换行例如你写个html,里面有段文字,无论多少行,没遇到标签的话,都是一行显示出来