Re: date
| From: | Rick Widmer | Date: | Wed, 04 Dec 2002 00:12:57 +0000 |
| Subject: | Re: date | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126916@lists.php.net to get a copy of this message | ||
Hi, please could someone tell me how i can return a month in text from an int ie getMonth(12)How about: $Months = array( , 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' );echo $Months[12]; // Dec Rick