//下个星期的现在 echo $w = strtotime("+1 week") . "<br/>"; //下个月的现在 echo $m = strtotime("+1 month") . "<br/>"; //下一年的现在 echo $y = strtotime("+1 year") . "<br/>";
总的来说, 把里面 1 换成变量, 就可以得到第 n 个星期,月, 年的时间了总的来说
//下个星期的现在 echo $w = strtotime("+1 week") . "<br/>"; //下个月的现在 echo $m = strtotime("+1 month") . "<br/>"; //下一年的现在 echo $y = strtotime("+1 year") . "<br/>";
总的来说, 把里面 1 换成变量, 就可以得到第 n 个星期,月, 年的时间了总的来说