This time for everyone to bring PHP to get the same day 0 o'clock time stamp step in detail, PHP to get the day of the 0 o'clock time stamp note what, the following is the actual case, together to see.
Today's project, want to see every day is the full information of the day, so want to get the day 0 points of time stamp, review the relevant knowledge of time stamp, summarized as follows:
<?phpheader ("Content-type:text/html;charset=utf-8");//Set Beijing time as the default timezone date_default_timezone_set (' PRC ');// The current time of the output is Echo date ("Y-m-d h:i:s", Times ()); 2016-08-11 10:30:32//Get time stamp $today = strtotime (Date ("y-m-d"); Echo ' <br> '; echo $today; 1470844800echo ' <br> ';//Verify that the time stamp on the morning of the day is correct echo date ("Y-m-d h:i:s", $today); 2016-08-11 00:00:00echo ' <br> ';//24-point Timestamp $end = $today +60*60*24;//Verify that the 24-point timestamp for the day is correct echo date ("Y-m-d h:i:s", $ End); 2016-08-12 00:00:00echo ' <br> ';//Get a timestamp of 0 points for the specified time at-----Strtotime (' 2014-06-06 '); Echo ' <br> '; echo $time; 1401984000echo ' <br> ';//verify whether the timestamp for the specified time echo date ("Y-m-d h:i:s", $time); 2014-06-06 00:00:00?>
Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!
Recommended reading:
PHP dynamic Add XML Data steps in a detailed
PHP dynamic Delete XML data steps in detail