search

Home  >  Q&A  >  body text

php get countdown

I used js to write a 20-second countdown, and then I wanted to ask if there is a way to get the number of seconds at a certain moment in php, and then save it in the database!

滿天的星座滿天的星座2754 days ago470

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 13:15:38

    time()?

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 13:15:38

    If you want to get the number of seconds at a certain moment, you can add a trigger function to this time, clear the timer, get the value and store it in the database through ajax

    reply
    0
  • Cancelreply