php - Time remaining until specific time from current time of page load

后端 未结 3 1912
梦毁少年i
梦毁少年i 2020-12-03 04:08

I have to admit that having not even tried to code this myself this question may be a annoying to some but I\'m very surprised that I wasn\'t able to find a good example on

3条回答
  •  臣服心动
    2020-12-03 04:14

    first you'll need to calculate the difference in seconds using time() and strtotime(). Then you can translate those seconds into days/hours/minutes/seconds.

提交回复
热议问题