AW: [PHP-WIN] Re: Format integer to month name
| From: | Dr. Robert Probst | Date: | Mon, 19 Apr 2004 15:43:06 +0000 |
| Subject: | AW: [PHP-WIN] Re: Format integer to month name | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23485@lists.php.net to get a copy of this message | ||
i would use the following :)
$monthnames = array ("","January",
"February",.....,"December");
$aktmonth = 5; // MAY
echo $monthnames[$aktmonth];
Robert
> -----Ursprüngliche Nachricht-----
> Von: Nadim Attari [mailto:nadim@alienworkers.com]
> Gesendet: Montag, 19. April 2004 10:53
> An: php-windows@lists.php.net
> Betreff: [PHP-WIN] Re: Format integer to month name
>
>
> > Actually, I want to know is there any function of
> converting integer
> > from 1 - 12 to Month Name from January to December? i had tried
> > "JDMonthName( )" & "date( )", but can't get the format i
> > want.
> >
> > I am beginner and using window platform.
> >
> > Thank you very much.
>
http://www.php.net/date
http://www.php.net/mktime
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php