Home > Backend Development > PHP Tutorial > 2014 New Year Countdown Example_PHP Tutorial

2014 New Year Countdown Example_PHP Tutorial

WBOY
Release: 2016-07-13 10:39:50
Original
1028 people have browsed it

2014 New Year countdown applet

Copy code The code is as follows:

$zero1=strtotime ( date(“y-m-d h:i:s”)); //Current time
$zero2=strtotime (“2014-1-31 24:00:00′); //New Year time
$guonian=ceil (($zero2-$zero1)/86400); //60s*60min*24h
echo “There are still $guonian days until the Chinese New Year! ”;
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/728092.htmlTechArticle2014 New Year countdown applet copy code is as follows: ?php $zero1=strtotime (date(“y-m-d h: i:s”)); //Current time $zero2=strtotime (“2014-1-31 24:00:00′); //New Year time...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template