Home PHP How to transform a month number to month name using PHP?
 
 
 

How to transform a month number to month name using PHP?

PDF Print E-mail

Question: How to transform a month number to month name using PHP?

 

Answer:


 
 
$month = 1;
 
$month_name = date("F", mktime(0,0,0,$month,1,2011));
 
echo $month_name; //Will output January

+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!