如何使用PHP查找两个日期之间的天数?
$now = time(); // or your date as well $your_date = strtotime("2010-01-31"); $datediff = $now - $your_date; echo round($datediff / (60 * 60 * 24));
2.1m questions
2.1m answers
60 comments
57.0k users