In PHP given a month string such as "November" how can I return 11 without using a 12 part switch st
Posted
by stormist
on Stack Overflow
See other posts from Stack Overflow
or by stormist
Published on 2010-04-23T20:13:14Z
Indexed on
2010/04/23
21:03 UTC
Read the original article
Hit count: 260
I.e.
Month Returns
January 1
February 2
March 3
April 4
May 5
June 6
July 7
August 8
September 9
October 10
November 11
December 12
I've seen examples using mktime when given the number of the month and returning the month string, but not the reverse.
© Stack Overflow or respective owner