1.在html標籤中可以直接使用php變量的值的方法如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<!--<body background="images/b1.jpg">-->
<?php $shishi="nidaye";?>
<table border="true">
<tr>
<td><?=$shishi ?></td>
<td>buzhikexingbu</td>
</tr>
</table>
<input type="button" value="<?=$shishi?>">
</body>
</html>