如何使用PHP查找两个日期之间的天数?
代码如下:
$now = time(); // or your date as well
$your_date = strtotime("2010-01-31");
$datediff = $now - $your_date;
echo round($datediff / (60 * 60 * 24));
走走停停,看日出!
如何使用PHP查找两个日期之间的天数?
代码如下:
$now = time(); // or your date as well
$your_date = strtotime("2010-01-31");
$datediff = $now - $your_date;
echo round($datediff / (60 * 60 * 24));
谢谢分享,打卡,滴滴id
很实用,学习中