Month name from month number – PHP

<?php

date(“M”, mktime(0, 0, 0,MONTH_NUMBER,DATE, YEAR));

eg:  echo date(“M”, mktime(0, 0, 0,5,17, 1984));   // May

?>

Share

Leave a Reply

Your email address will not be published. Required fields are marked *