I\'m stumped as to why the following PHP strtotime function returns \'07\' as the month number, rather than \'06\' when $monthToGet = \'June\':
$monthToGet =
Today is 31 Jul. So a strtotime
with only "June"
is interpreted as 31 June
=> 1 July
.
In fact:
echo date("Y-m-d",strtotime("January")); // 2012-01-31
echo date("Y-m-d",strtotime("February")); // 2012-03-02
of course... only today 31 Jul 2012
:) Tomorrow all will works.
You're lucky because you found this bug just today ;)