<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>單引號和雙引號的區別</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
margin-left: 10px;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
}
-->
</style></head>
<body>
<div align="center">
<?php
$i = '只會看到一遍'; //聲明一個字符串變量
echo "$i"; //輸出變量內容 只會看到一遍
echo "<p>"; //輸出段標記
echo '$i'; //輸出字符 $i
?>
</div>
</body>
</html>