Select Page

How to transform a month number to month name using PHP

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

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.