php strtotime()函数对时间 加减的妙用 (实例)
<br /><br /><?phpheader('Content-Type: text/html; charset=utf-8');echo date('Y-m-d H-i-s');//相对当前时间echo '当前时间戳:'.time().' | 当前的时间:'.date('Y-m-d H-i-s' , time());;echo '<br>';echo '4年后的时间戳:'.strtotime("+ 4 years").' | 4年后的时间:'.date('Y-m-d H-
原创
2011-04-25 10:36:00 ·
4318 阅读 ·
0 评论