另一种在HTML中运行PHP的方法是用HTML的<script>标签。
<html>
<head>
<title>My First PHP Page</title>
</head>
<body>
<script language="php">
echo "Hello World!";
</script>
</body>
</html>
但是,最新的PHP版本已经移除了对<script language="php">标签的支持。正因如此,我们推荐明确使用<?php ?>。
Part题:
当用script标签执行PHP时,哪种是正确的?
A. <script type="application/ecmascript">
B. <script type="text/javascript">
C. <script language="php"> |