Does anyone know of a timer function like the setTimeOut of javascript: link
Only in PHP?
Because I'm trying to do with Sleep, but the page loads infinitely.
function Criar_Madeira($a) {
$a->madeira += 500;
sleep(10);
Criar_Madeira($a);
}
Criar_Madeira($a[1]);