php怎么判断今年明年今天明天
php吧
全部回复
仅看楼主
level 7
牛蹄中人 楼主
今月还是上月?
2013年11月22日 12点11分 1
level 8
查看手册date, strtotime, time函数的说明. 以及相对时间和绝对时间的说明.
strtotime( '+1 days' ) 就是明天的时间戳,
strtotime( '-1 month' ) 就是上个月的时间戳.
strtotime ( '-1 days 2012-5-3' ) 这是5月2日的时间戳.
2013年11月22日 14点11分 3
level 8
date("Y",time()) 今年
date("d",time()) 今天
date("d",strtotime( '+1 days' ) ) 明天
2013年11月25日 09点11分 5
level 7
欢迎加入群:290647494。 讨论学习
2013年11月26日 00点11分 7
1