回答編集履歴
1
調整
answer
CHANGED
@@ -4,5 +4,8 @@
|
|
4
4
|
```PHP
|
5
5
|
$txt="2022/01/01";
|
6
6
|
$result=date("Y/m/d",strtotime($txt." + 5day"));
|
7
|
+
/* もしくは
|
8
|
+
* $result=date("Y/m/d",strtotime($txt)+5*86400);
|
9
|
+
*/
|
7
10
|
print $result;
|
8
11
|
```
|