2010-11-10 138 views

回答

2
$difference = strtotime($date1) - strtotime($date2); 

差異將以秒爲單位。

+0

之前先搜索'$ date1,$ date2'是相同的,除非是拼寫錯誤 – ajreal 2010-11-10 05:36:40

相關問題