Friday, October 10, 2008

how to change month number to month name?

how to change month no to month name?
link 02 to february or Feb...

function month_name($month_no)
{
$timestmp = mktime(0,0,0,$month_no,1,2008);
return date("M",$timestmp);
}

echo month_name(10); //will return October
?>


Cheers!

No comments: