<?
header("Content-type: text/plain/n/n"); //添加
for($i=0;$i<=10;$i++) {
echo"This my first PHP./n";
}
?>
2、超文本方式
<html>
<head> </head>
<body>
<?php
for($i=0;$i<10;$i++){
echo"thank you.<br>"; //用"<br>"换行
?>
</body>
</html>
3、也可用<pre>解析
echo "<pre>Line 1/nLine 2/nLine 3/n</pre>";