proctk Posted March 8, 2008 Share Posted March 8, 2008 Hi I need script that will convert a number say 03 to the month name in this case March. Thank you Link to comment https://forums.phpfreaks.com/topic/95004-month-name-from-number/ Share on other sites More sharing options...
SkullzY88 Posted March 8, 2008 Share Posted March 8, 2008 date(); view -> http://uk.php.net/manual/en/function.date.php Link to comment https://forums.phpfreaks.com/topic/95004-month-name-from-number/#findComment-486699 Share on other sites More sharing options...
amites Posted March 8, 2008 Share Posted March 8, 2008 ya beat me to it, take a look at the examples on that page, what you're looking for is fairly simple Link to comment https://forums.phpfreaks.com/topic/95004-month-name-from-number/#findComment-486702 Share on other sites More sharing options...
tippy_102 Posted March 8, 2008 Share Posted March 8, 2008 <?PHP $MonthNumber = 03; echo date("F", mktime(0, 0, 0, $MonthNumber, 1, 2000)); ?> Link to comment https://forums.phpfreaks.com/topic/95004-month-name-from-number/#findComment-486709 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.