Thursday, September 5, 2013

Month Number to Month Name PHP

9/05/2013


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




?>

helpful? Share this

The Editorial Team of 4everTutorials consists of a group of PHP Professionals.

0 comments:

 

© 2014 4everTutorials. All rights resevered.

Back To Top