How to transform a month number to month name using PHP

2 sec read

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

Last Updated On March 22, 2018

Leave a Reply

avatar
  Subscribe  
Notify of