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')); 

docs


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -