+ 1

Refresh php function

How can I refresh some function in php every second? Thank you :)

27th Feb 2018, 2:24 PM
Adriana
Adriana - avatar
1 Respuesta
+ 2
you could use sleep(); It waits given seconds before it continues function test() { sleep(1); test(); } test(); That's not gonna be very useful because PHP is server side.
27th Feb 2018, 2:33 PM
Toni Isotalo
Toni Isotalo - avatar