Number to Month


<?php
/*
* The script will print "Mar"
* See php.net/date for more formatting options
*/
$m = 3
print date('M', mktime(0,0,0,$m,1,date("Y")));
?>

+

There may be a small performance benefit to just specifying a number, like 2010, instead of using date("Y") to supply the year argument to mktime. I just like being really really accurate about what the third month is going to be in year in which the script is running. You never know, such a thing might change...