Home >php教程 >php手册 >计算当天起始点和结束点时间戳 去当天的数据

计算当天起始点和结束点时间戳 去当天的数据

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:57:181359browse

[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";

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn