Re: month name predefined function?



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/
.