用下列语句就可以满足楼主的要求:
$date1="2004-10-24 ";
$date2="2004-9-24 ";
$d1=strtotime($date1);
$d2=strtotime($date2);
$hour=round(($d1-$d2)/3600/24);
$date1="2004-10-24 ";
$date2="2004-9-24 ";
$d1=strtotime($date1);
$d2=strtotime($date2);
$hour=round(($d1-$d2)/3600/24);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货