Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in F:\806\agent\lzjtest.php on line 10
lzj34 2004-09-16 11:35:29 <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>宏码时代PHP演示</title>
</head>
<body>
<?php
$today = date("Y年m月d日"); //把呼叫 date函數所得的值, 設定給 $today變數
使用 "here document "语法一行文字, <br>
所有用 here document的方式輸出的文字, <br>
都可以完整的保留下來, <br>
變數在這裡也可以被替換, <br>
今天: $today<br>
?>
<hr>上面的文字, 是執行過PHP程式所得的輸出結果<br>
這裡的文字, Web Server不會作任何處理, 直接輸出<hr>
以下輸出的結果是 <?php print $today ?> 的簡寫方式<br>
<?php =$today;
print $today ?>
<hr>
</body>
</html>