Get seconds until end of day in PHP

php

Solution

First thought:

86400 - date('H') * 3600 - date('i') * 60 - date('s')

Faster version derived from VolkerK's answer:

strtotime('tomorrow') - time()

Problem

In PHP, how can I get the number of seconds until the end of day? Thanks.

Original source

Related problems