得到昨天0时的UNIX时间戳的代码:
1 2 3
//获取昨天0点整的uinx时间戳 $yestday = strtotime(date('Y-m-d',time() - 86400).' 00:00:00'); echo $yestday;
新年好~
20:45
新年好~