R
R
rennameduser_34322021-06-13 16:43:01
PHP
rennameduser_3432, 2021-06-13 16:43:01

How to create an infinite one second timer in php?

I can’t find anything on the Internet, I need a one-second timer that will add +1 to the variable every second

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mafia8, 2021-06-13
@mafia8

Such a timer already exists.

$time0=time();
// long code
echo 'Прошло секунд: ';
echo time() - $time0;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question