史上最简洁的PHP时间戳代码

浏览:2868 发布日期:2015/04/17 分类:系统代码 关键字: 时间戳 上周日
以下是PHP获取本周一、明天、上周一、上周日的时间戳方式,你们看看有没更简洁的哈?
$week_this_monday =strtotime('last Monday'); //本周一
$tomorrow =strtotime("+1 day");//明天
$week_last_monday = strtotime('last Monday') - 3600 * 24 * 7; //上周一
$week_last_sunday =strtotime('last Monday')- 3600 * 24); //上周日
本文来自 素材火 http://www.sucaihuo.com
评论( 相关
后面还有条评论,点击查看>>