案例:PHP案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
<!DOCTYPE html>
3
<html>
4
<body>
5
6
<?php
7
$d1=strtotime("December 31");
8
$d2=ceil(($d1-time())/60/60/24);
9
echo "距离十二月三十一日还有:" . $d2 ." 天。";
10
?>
11
12
</body>
13
</html>
14