How to work out what was the date of the last Sunday using PHP


Here is a code snippet to work out the date of the last Sunday:

echo date('Y-m-d',strtotime('last sunday'));


Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top