Last Updated: February 25, 2016
·
744
· gilbitron

PHP Month Number to Month Name the Easy Way

<?php
$monthNum = 5;
$monthName = date("F", mktime(0, 0, 0, $monthNum, 10));
echo $monthName; //output: May
?>