質問編集履歴
1
タイトルを修正しました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
特定の日の1週間前から、特定の日まで表示する条件分岐
|
1
|
+
特定の日の1週間前から、特定の日の1日まで表示する条件分岐
|
test
CHANGED
@@ -11,9 +11,11 @@
|
|
11
11
|
|
12
12
|
以下はechoで出力できています。
|
13
13
|
|
14
|
+
```
|
14
15
|
echo $target_date
|
15
16
|
echo date('Y-m-d', strtotime('-1 week', $target_date));
|
16
17
|
echo date('Y-m-d', strtotime('-1 day', $target_date));
|
18
|
+
```
|
17
19
|
|
18
20
|
$target_dateの一週間前から表示し、$target_dateの1日前で非表示とする条件を書きたいのですがどのように直せばよいでしょうか。
|
19
21
|
|