note 59408 deleted from function.date by nlopess
| From: | nlopess@php.net | Date: | Mon, 12 Dec 2005 19:47:50 +0000 |
| Subject: | note 59408 deleted from function.date by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100015@lists.php.net to get a copy of this message | ||
Note Submitter: krizanovskij at siol dot net
----
Countdown:
<?php
$day = 8; // Day
$month = 8; // Month
$year = 2008; // Year
if ($month == 1) $month_name= "January";
if ($month == 2) $month_name= "February";
if ($month == 3) $month_name= "March";
if ($month == 4) $month_name= "April";
if ($month == 5) $month_name= "May";
if ($month == 6) $month_name= "June";
if ($month == 7) $month_name= "July";
if ($month == 8) $month_name= "August";
if ($month == 9) $month_name= "September";
if ($month == 10) $month_name= "October";
if ($month == 11) $month_name= "November";
if ($month == 12) $month_name= "December";
print ("There are " . (int)((mktime (0,0,0,$month,$day,$year) - time(void))/86400) .
" days until $month_name $day, $year");
?>