php - 'first monday previous month' strtotime confusion -
today 2015-05-14
why does
date('y-m-d', strtotime('first monday previous month'))
return
string(10) "2015-04-18"
i expected return 2015-04-06 - first monday of previous month.
missing of
in datetime
string. try -
date('y-m-d', strtotime('first monday of previous month'));
Comments
Post a Comment