标签: php
可能重复: How to calculate the date difference between 2 dates using php
date1=2010-11-10 09:49:54; date2=2010-11-10 09:49:54;
如何在PHP中区分这两个日期?
答案 0 :(得分:2)
$difference = strtotime($date1) - strtotime($date2);
差异将以秒为单位。