php: +1天, +3个月, strtotime(): +1 day, +3 month

php: +1天, +3个月, strtotime():  +1 day, +3 month

比如,我现在当前时间基础上+1天:

strtotime("+1 day");

 

比如我现在,2014-05-01时间上 + 3个月

$s = strtotime("2014-05-01");

$d = strtotime("+3 month", $s);

 

posted @ 2017-11-19 14:38  午火39  阅读(13134)  评论(0)    收藏  举报