> 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





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to