RE: [PHP] Replacing Number with Month(newbie)

2002-05-31 Thread John Holmes
You can use an array.. $month = array("January","February","March","April".); echo $month[1]; Or put that into a function and use it like show_month(5); ---John Holmes. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 5:51 AM To: [

RE: [PHP] Replacing Number with Month(newbie)

2002-05-31 Thread Ford, Mike [LSS]
> -Original Message- > From: Jon Haworth [mailto:[EMAIL PROTECTED]] > Sent: 31 May 2002 10:58 > > Hi JJ, > > > Is there a magical function that I can use to convert 4 > > into April and 5 into May etc? > > can I use mktime() > > One yes no answer will do fine > > Yes and no ;-) Ha! I

RE: [PHP] Replacing Number with Month(newbie)

2002-05-31 Thread Jon Haworth
Hi JJ, > Is there a magical function that I can use to convert 4 > into April and 5 into May etc? > can I use mktime() > One yes no answer will do fine Yes and no ;-) You might want to use a combination of mktime() and date(). i.e. HTH Jon -- PHP General Mailing List (http://www.php.net/