Right now if you where to use strtotime('1 month')
on January 31st you would get march 1st but I wondering if there is a simple way that if I where to run that same script on the same day instead of getting march 1st I could get February 28. Is this possible? Any suggestions would be greatly appreciated.
Thanks
EDIT:
Sorry I think I did not explain this properly, I want to be able to always get 30 days except for months where that day dont exists. So for instance if it is January 31st I want to be able to get February 28th but if it was January 10 I want February 10.