get month string to month number in php code example
Example 1: php grab month from date
$month = date("m",strtotime($mydate));
Example 2: php convert number to month
$monthNum = 3;
$monthName = date('F', mktime(0, 0, 0, $monthNum, 10)); // March