Here\'s a summary of the issue: On Sundays, strtotime(\'this week\') returns the start of next week.
strtotime(\'this week\')
In PHP, the week seems to start on Monday. But, on
I think the only problem with your coding is TimeZone.
Solution: Set your own time Zone. Here is the example of my own time zone:
Example
date_default_timezone_set('Asia/Kolkata'); Set the above line before calling any time function.
Have a nice day.