php的一个问题

来源:百度知道 编辑:UC知道 时间:2024/05/07 13:13:39
<?php
echo "My test!"
echo "<br/>This is a test!\n\n"
echo "That\'s all!"
?>
会显示啥?请帮忙讲述一下!

页面显示
My test!
This is a test! That\'s all!

\n在页面显示中不起作用
在源文件中起作用

源文件中显示
My test!<br/>This is a test!

That\'s all!

输出结果
my test[换行]
This is a test[换行]
That's all

My test!
This is a test!

That's all!

以上就是显示结果,注意那个that's