php中计算离生日还剩下多少天?
/生日倒计时$birthday = "2017-12-29";date_default_timezone_set("PRC")
;//今天的时间戳$today = time()
;echo "今天是".date("Y-m-d",$today).""
;//生日时间戳$bstamp = strtotime($birthday)
;//倒计时多少天$rev = ceil(($bstamp-$today)/(24*3600))
;echo "距离您的生日还有".$rev."天";