Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
今日が木曜日の場合のように、php date()関数を使用して金曜日を表示したいと思います。たとえば、次のコードは現在の月を示していますが、その月の翌日を示しています。機能した。<?php echo date("M "), date("d")+1 ?>
<?php echo date("M "), date("d")+1 ?>
だから私はこれを試していました<?php echo date("l")+1, date("d")+1 ?>、そしてそれは私をだましました:(。
<?php echo date("l")+1, date("d")+1 ?>
をご覧くださいstrtotime。また、lを使用すると、曜日(金曜日など)の完全なテキスト表現が生成されdateます。
strtotime
l
date
次のようなものがあなたが望むことをするはずです:
date('l', strtotime('+1 day'))
次の式は次の日を示します。
date('l', time()+3600*24)