【php开源代码栏目提醒】:网学会员为广大网友收集整理了,EX04-05.php,希望对大家有所帮助!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<meta http-equiv="Content-Language" content="zh-tw">
<title>定义常量</title>
</head>
<body background="EX04-05/BG01.jpg"><Font color = "BLUE">
<center>
<script language = "php">
Define("G", 9.8);
Define("Light", 299792.458);
Define("PI", 3.141592657);
echo "重力加速度是:";
echo G;
echo "<BR>";
echo "光的速度是:";
echo Light;
echo "<BR>";
echo "圆周率是:";
echo PI;
</script>
</center>
</body>
</html>