版权声明:本人原创文章,转载时请保留所有权并以超链接形式标明文章出处 https://blog.csdn.net/qq_37138818/article/details/82851306
方法一
$start_time="1536768000";
$end_time="1537286400";
for($i = $start_time; $i <=$end_time; $i+=86400)
{
$days[] =strtotime(date('Y-m-d',$i));
}
$count_days = count($days)-1;
var_dump($count_days);exit;
方法二
$start_time="1536768000";
$end_time="1537286400";
$count_days =(($end_time-$start_time)/60/60/24);
var_dump($count_days);exit;
如整合期间有遇到什么问题 可以加群 858507220 一起讨论哦。