This is a simple code for you to convert a month number to a month name in PHP
Example:
<?php
/*
Online PHP Examples with Source Code
website: http://4evertutorials.blogspot.in/
*/
$monthNum = 11;
$monthName = date("F", mktime(0, 0, 0, $monthNum, 10));
echo $monthName; //output: November
?>






0 comments:
Post a Comment