{"published":"2013-12-23 16:09:42","type":"rich","author_name":"tototoshi","image_url":null,"width":"100%","provider_url":"https://hatena.blog","categories":["PHP"],"provider_name":"Hatena Blog","blog_url":"https://tototoshi.hatenablog.com/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftototoshi.hatenablog.com%2Fentry%2F20131223%2F1387782582\" title=\"+n month \u306e\u7f60 - tototoshi \u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://tototoshi.hatenablog.com/entry/20131223/1387782582","title":"+n month \u306e\u7f60","author_url":"https://blog.hatena.ne.jp/tototoshi/","version":"1.0","blog_title":"tototoshi \u306e\u65e5\u8a18","description":"PHP Advent Calendar 2013 - Qiita \u306e 23 \u65e5\u76ee\u3067\u3059\u3002 strtotime \u306e\u8a71\u3092\u3057\u307e\u3059\u3002 +n month \u306e\u7f60 \u65e5\u6642\u3092\u6271\u3046\u306e\u306f\u5927\u62b5\u3069\u306e\u8a00\u8a9e\u3067\u3082\u96e3\u3057\u3044\u3067\u3059\u3002PHP\u3067\u3082\u3082\u3061\u308d\u3093\u305d\u3046\u3002PHP \u3067\u65e5\u4ed8\u306e\u8db3\u3057\u7b97\u3092\u3059\u308b\u306e\u306b\u306f strtotime \u3092\u4f7f\u3044\u307e\u3059\u3002 echo date('Y-m-d', strtotime('2013-01-31 +1 day')) . PHP_EOL; //=> 2013-02-01 strtotime \u306f\u3059\u3054\u304f\u4fbf\u5229\u3067\u3059\u304c\u3001\u3046\u304b\u3064\u306b\u6708\u306e\u8a08\u7b97\u3092\u3059\u308b\u3068\u4e88\u671f\u3057\u306a\u3044\u7d50\u679c\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002 echo date('Y-m-d', strtotime('20\u2026"}