发布于2019年04月15日2019年09月1日 由Mr.RenPHP 日期相差天数计算方法 如何使用PHP查找两个日期之间的天数? 代码如下: $now = time(); // or your date as well $your_date = strtotime("2010-01-31"); $datediff = $now - $your_date; echo round($datediff / (60 * 60 * 24)); 1234 $now = time(); // or your date as well$your_date = strtotime("2010-01-31");$datediff = $now - $your_date;echo round($datediff / (60 * 60 * 24));
谢谢分享,打卡,滴滴id
很实用,学习中