Monday, May 27, 2013

Convert Month Number to Month Name in PHP

Here is a quick code to convert Month Number to Month Name

<?php $monthNumber = 5; $monthName = date("F", mktime(0, 0, 0, $monthNumber, 10)); echo $monthName; ?>

OutPut:
May

No comments:

Post a Comment