回答編集履歴
1
chousei
answer
CHANGED
@@ -2,4 +2,8 @@
|
|
2
2
|
```PHP
|
3
3
|
$target_day = "2017-12-05";
|
4
4
|
echo date("Y-m-d",strtotime($target_day."+3 day"));
|
5
|
+
```
|
6
|
+
もしくはtarget_dayのみstritotimeして日付を加算するとか
|
7
|
+
```PHP
|
8
|
+
echo date("Y-m-d",strtotime($target_day)+3*60*60*24);
|
5
9
|
```
|