Re: month name predefined function?
- From: Ewoud Dronkert <firstname@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 18:28:40 +0200
On 30 Apr 2005 08:43:06 -0700, laredotornado@xxxxxxxxxxx wrote:
> the name of the month given the input of the month represented as a
> number between 1 and 12?
Not easily, and only in English. You could use
echo date( 'F', mktime( 12, 0, 0, $month, 1, 2000, 0 ) );
(Use midday to avoid problems with daylight saving time).
Easier and less error prone would be
$monthname = array( 1 => 'January', 'February', 'March', <etc> );
echo $monthname[$month];
--
Firefox Web Browser - Rediscover the web - http://getffox.com/
Thunderbird E-mail and Newsgroups - http://gettbird.com/
.
- References:
- month name predefined function?
- From: laredotornado
- month name predefined function?
- Prev by Date: month name predefined function?
- Next by Date: Re: month name predefined function?
- Previous by thread: month name predefined function?
- Next by thread: Re: month name predefined function?
- Index(es):