The question sort of says it all - is there a function which does the same as the JavaScript function setTimeout() for PHP? I\'ve searched
if you need to make an action after you execute some php code you can do it with an echo
echo "Success.... ";
so after a time in the client(browser) you can do something else, like a redirect to another php script for example or echo an alert