Finding the number of days between two dates

后端 未结 30 2538
心在旅途
心在旅途 2020-11-21 23:47

How to find number of days between two dates using PHP?

30条回答
  •  梦毁少年i
    2020-11-22 00:02

    $diff = strtotime('2019-11-25') - strtotime('2019-11-10');
    echo abs(round($diff / 86400));
    

提交回复
热议问题