In PHP, how can I get the number of seconds until the end of day?
Thanks.
First thought:
86400 - date('H') * 3600 - date('i') * 60 - date('s')
Faster version derived from VolkerK's answer:
strtotime('tomorrow') - 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