transform month number to month name in php
Hi lets say Ive got a number 2 and I want to transform it into Feb but I do not want to create an array with 12 values ....I want a function that does just that .......
Check out the format strings available with the date function. You can't use it directly to translate 2 to Feb, but you could probably write your own function that pieces it together into a timestamp with mktime and then use that timestamp to format the date with a short textual representation of the month.
Something like so (untested):
|All times are GMT -5. The time now is 11:37 PM.|