2015
01-27
01-27
PHP 获取前一天或后一天的日期代码
PHP判断前/后一天,或前后多少天的代码:<?phpdate_default_timezone_set('PRC');//默认时区echo"今天:",date("Y-m-d",time()),"<br>";echo"今天:",date("Y-m-d",strtotime("18june2008")),"<br>";echo"昨天:",date("Y-m-d",strtotime("-1day")),"<br>";echo"明天:",date("Y-m-d",strtotime("+1day")),"<br>";echo"一周后:",date("Y-m-d",strtotime("+1week")),"<br>";echo"...
继续阅读 >