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! ”;
?>
http://www.bkjia.com/PHPjc/728092.htmlwww.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...
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