Take a look at mktime() and date() ... 

echo date("M",mktime(0,0,0,12,1,2002))


The first param of date is the format, "M" means month in string format
not number of month, and mktime paramas are:

int hour, int minute, int second, int month, int day, int year


This should work


Hi,

please could someone tell me how i can return a month in text from an
int ie

getMonth(12)

returns Decmber. Is this possible?

Thanks for your help



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


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

Reply via email to