How to transform a month number to month name using PHP

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

Image Credits: Photo by Isis França on Unsplash.

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link