$oldm='5';
I want $oldm to convert to a new variable $newm, so that $newm contains "may". I mean i want to convert $oldm to text month. How to do it ?
sakush100
0
Newbie Poster
Recommended Answers
Jump to PostCreate an array with all the months in it. Then if 5 is supplied as the month, just access the 5th element of the array.
You may want to put a dummy value in location 0 of the array so it makes it a bit easier to access the …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.