如何在单个 strtotime 中引用所有日期

问题描述 投票:0回答:0

我正在尝试遍历日历并显示每周特定日期的事件。我每周都使用 strtotime 进行参考。但是,似乎只能跟踪结束日期,而不是两者之间的所有内容。

我会进一步解释

// This is today's date
 $Today = Date("Y/m/d");

// This displays the date one week from today. It's the end date
$NewDate1 = Date("Y/m/d", strtotime("+7 days"));

strtotime 只能引用特定的一天。有什么方法可以使用 strtotime 来包含除开始日期和结束日期之外的所有日期?

strtotime
© www.soinside.com 2019 - 2024. All rights reserved.