📅  最后修改于: 2022-03-11 14:53:44.647000             🧑  作者: Mango
$now = time(); // or your date as well
$your_date = strtotime("2010-01-31");
$datediff = $now - $your_date;
echo round($datediff / (60 * 60 * 24));