如题所述
$today = date('Y-m-d',$time) //这个是根据时间获取当前时间戳的年月日,在把$today转化成时间戳,strtotime($today),就能获得当天0点的时间戳了,想要获取24点的时间戳,那就是明天0点的时间戳,$tomorrow = date('Y-m-d',strtotime( "+1 day",$time)), 24点的时间戳是这个 strtotime($tomorrow)。
温馨提示:答案为网友推荐,仅供参考
第1个回答 2016-12-21
echo strtotime(date("Y-m-d"));