PHP function for next Saturday and previous Sunday
For the report system in a project that I’m working on I needed a way to find the first second of a week and the last second of a week based on a Unix timestamp.
Credit for the previous Sunday goes to Shaun who posted a way to find it on the PHP site for strftime, although I changed his code a little because I’m more comfortable with the date() function.
PHP:
Question, Comments...
Do you have more questions. Please either leave a comment below or join us in our new forum.