ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

0
Date Submitted Sun. Sep. 23rd, 2012 1:14 AM
Revision 1
Beginner DevlshOne
Tags "month conversion" | Date | month | PHP
Comments 0 comments
This PHP function allows you to convert a month number to one of three optional alphabetical strings.
Usage:
$strMonth = toMonth(9) // returns "September"
$strMonth = toMonth(9,1) // returns "Sep"
$strMonth = toMonth(9,2) // returns "SEP"

Enjoy!