我有以下代碼,除了$ the_saturday_after_next_sunday之外,一切正常。它沒有輸出正確的日期。你能幫我正確顯示日期嗎?下週日後獲取星期六的日期
感謝您的幫助。
<?php
$today = date('m/d/Y');
$next_sunday = date('m/d/Y', strtotime("next Sunday"));
$the_saturday_after_next_sunday = date('m/d/Y', strtotime("next Saturday", $next_sunday));
echo "today is: " . $today . "<br>";
echo "next sunday is: " . $next_sunday . "<br>";
echo "the saturday after next sunday is: " . $the_saturday_after_next_sunday . "<br>";
?>
我也試過
$the_saturday_after_next_sunday = strtotime("next Saturday", $next_sunday);
[它只是在這裏](http://codepad.org/Kcv3Vpfj),你_did_記得正確設置你的時區? – Wrikken 2013-03-14 00:31:48