echo strtotime("first day of last month");
returns 1317492376
but it's 6开发者_运维技巧 pm of 1 september! Shouldn't it return the timestamp of first second of the month? If not, how to get it?
strtotime()
doesn't touch the time part when you specify only the date. Try this:
strtotime( "first day of last month 00:00" )
精彩评论