note 27350 added to function.date
| From: | newbie at rack1 dot php dot net | Date: | Tue, 03 Dec 2002 00:38:59 +0000 |
| Subject: | note 27350 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40282@lists.php.net to get a copy of this message | ||
Here's a simple way to convert the number of a month into the name of the month.
1 will give January
2 will give February
...
12 will give December
$month_number = 3;
$month_name = date ("F", mktime (0,0,0,$month_number,1,2000));
echo "Month number $month_number is called $month_name";
// will print out March
--
http://www.php.net/manual/en/function.date.php
http://master.php.net/manage/user-notes.php?action=edit+27350
http://master.php.net/manage/user-notes.php?action=delete+27350
http://master.php.net/manage/user-notes.php?action=reject+27350