Re: Output Numerical Month as String?

From: Date: Tue, 25 Feb 2003 20:45:44 +0000
Subject: Re: Output Numerical Month as String?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137131@lists.php.net to get a copy of this message
> http://www.zend.com/manual/function.date.php > --- CF High <noah@newminddesign.com> wrote: > > Hey all. > > > > Easy question here (can't find the answer in php > > manual) > > > > In Cold Fusion I'm able to format a given numerical > > month value, say the > > third month, as #MonthAsString(3)# and it returns > > "March" > > > > What's the equivalent in PHP? > > > > Thanks for any ideas.......... I know you can use date() and mktime(), but wouldn't it be easier to just make an array? $MonthAsString = array (1=>'January',2=>'February',3=>'March',...); and then just echo $MonthAsString[3] when you need it? ---John Holmes...

« previous php.general (#137131) next »