Skip to content

Instantly share code, notes, and snippets.

@anunay
Created June 12, 2013 23:18
Show Gist options
  • Save anunay/5769970 to your computer and use it in GitHub Desktop.
Save anunay/5769970 to your computer and use it in GitHub Desktop.
PHP: Month Number to Month Name
<?php
$monthNum = 5;
$monthName = date("F", mktime(0, 0, 0, $monthNum, 10));
echo $monthName; //output: May
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment