Heim > Artikel > Backend-Entwicklung > 计算当天起始点和结束点时间戳 去当天的数据_PHP教程
[php] /*
*+ -------------------------------
* 计算当天起始点和结束点时间戳 去当天的数据
*+ ------------------------------
*/
$daybegin=strtotime(date("Ymd"));
$dayend=$begin+86400;
$query = "SELECT * FROM `info` WHERE addtime$daybegin";
/*
*+ -------------------------------
* 计算当天起始点和结束点时间戳 去当天的数据
*+ ------------------------------
*/
$daybegin=strtotime(date("Ymd"));
$dayend=$begin+86400;
$query = "SELECT * FROM `info` WHERE addtime$daybegin";