<? php
$eventDay = "2012-06-25"; //到计天数
$today = date("Y-m-d"); //调用今天的日期
$gotime = abs((strtotime(-strtotime($today))/86400); //计算两天相差时间
echo $gotime;//输出天数
?>
原文链接:https://94wz.top/80.html,转载请注明出处。


评论0