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

From: Date: Fri, 31 May 2002 09:57:46 +0000
Subject: RE: [PHP] Replacing Number with Month(newbie)
Groups: php.general 
Request: Send a blank email to php-general+get-100066@lists.php.net to get a copy of this message
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. <?php $month = 4; echo date ("jS F Y", mktime (1, 0, 0, $month, 1, 2002)); ?> HTH Jon

« previous php.general (#100066) next »