Possible Duplicate:
In PHP given a month string such as “November” how can I return 11 without using a 12 part switch statement?
How can I convert month name to month number in php without using an array? Is there any inbuilt function available in php?
Eg: If I use "January" from the variable, it should change to "01".