The problem is because strtotime treats every month as being 30 days.
It is a known bug in strtotime.
You are also misinterpreting what it means by last - it does not mean the last day of the month, it means previous - i.e last monday = monday last week.
__________________
Never argue with idiots. They just drag you down to their level and then beat you with their experience.
If ignorance is bliss then some of the people I know must be orgasmic.
|