Change Month Number to Month Name


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $monthNum = 5;
  2. $monthName = date("F", mktime(0, 0, 0, $monthNum, 10));

URL: http://css-tricks.com/snippets/php/change-month-number-to-month-name/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.