//下個星期的現(xiàn)在 echo $w = strtotime("+1 week") . "<br/>"; //下個月的現(xiàn)在 echo $m = strtotime("+1 month") . "<br/>"; //下一年的現(xiàn)在 echo $y = strtotime("+1 year") . "<br/>";
總的來說, 把里面 1 換成變量, 就可以得到第 n 個星期,月, 年的時間了總的來說
//下個星期的現(xiàn)在 echo $w = strtotime("+1 week") . "<br/>"; //下個月的現(xiàn)在 echo $m = strtotime("+1 month") . "<br/>"; //下一年的現(xiàn)在 echo $y = strtotime("+1 year") . "<br/>";
總的來說, 把里面 1 換成變量, 就可以得到第 n 個星期,月, 年的時間了總的來說