求助各位$startdate=strtotime($xxxx);$enddate=date("$xxxx",strtotime("+3 months"));上面$enddate 这句对吗??把$xxxx 的时间戳加上三个月的值,然后变成日期。对吗??如果只是把$xxxx 的时间戳加上三个月的值,不变成日期,保留时间戳,该怎么写呀??一直有错误,快崩溃了。谢谢各位
调试欢乐多
<?php
$s=strtotime("2010-3-26");
$date=strtotime(" +3 month",$s);
echo date("Y-m-d",$date);
?>