PHP strtotime() 函數用於把可讀的字符串轉換為 Unix 時間。
<?php
$d=strtotime("tomorrow");
echo date("Y-m-d", $d) . "<br>";
$d=strtotime("next Sunday");
echo date("Y-m-d", $d) . "<br>";
$d=strtotime("+45 days");
echo date("Y-m-d", $d) . "<br>";
$d=strtotime("+2 Months");
echo date("Y-m-d", $d) . "<br>";
?>