博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

PHP 取得某天前后N天的日期

Posted on 2011-08-23 12:06  峰雪  阅读(3953)  评论(1编辑  收藏  举报
$rs['expire_long']=5;
echo date("Y-m-d H:i:s",strtotime('-'.$rs['expire_long'].' days',strtotime('2011-01-01 10:28:18')));