[PHP] Output Numerical Month as String?

2003-02-25 Thread CF High
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..

--Noah

--




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Output Numerical Month as String?

2003-02-25 Thread Dennis Cole
[code]

date (F, mktime(0,0,0,6,1,2000));

[\code]

Replace 6 with the month number and your on your way
-Original Message-
From: CF High [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 5:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Output Numerical Month as String?


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..

--Noah

--




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread Noah
Cool.

I'll check it out.

Thanks!

--Noah

- Original Message - 
From: Dennis Cole [EMAIL PROTECTED]
To: CF High [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, February 14, 2001 12:21 PM
Subject: RE: [PHP] Output Numerical Month as String?


 [code]
 
 date (F, mktime(0,0,0,6,1,2000));
 
 [\code]
 
 Replace 6 with the month number and your on your way
 -Original Message-
 From: CF High [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 5:54 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Output Numerical Month as String?
 
 
 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..
 
 --Noah
 
 --
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread Daniel Guerrier
http://www.zend.com/manual/function.date.php
--- CF High [EMAIL PROTECTED] 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..
 
 --Noah
 
 --
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread 1LT John W. Holmes
 http://www.zend.com/manual/function.date.php
 --- CF High [EMAIL PROTECTED] 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...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php