<?php$d1 = "2005-05-30 07:48:14";
$d2 = "2005-05-31 07:49:40";$dt = 24*60*60;
echo $t =(strtotime($d2) - strtotime($d1))/$dt;
?>
out
1.00099537037
$d2 = "2005-05-31 07:49:40";$dt = 24*60*60;
echo $t =(strtotime($d2) - strtotime($d1))/$dt;
?>
out
1.00099537037
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货