In PHP how do I get the number of seconds from now()
until the next Sunday at midnight?
I don't want the solution relative to a specific date, but just to the next Sunday.
$seconds = strtotime('next Sunday') - time();
You can use
print strtotime('next Sunday') - time();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With