Is there any way to call a function 10 seconds after the page load in PHP. (Not using HTML.)
If you really must do it within the same PHP script, the cleanest way would be a fork.
Or if that's not possible, here's a really bad hackish way of doing it:
If you're doing this to output stuff to the user after a delay, the above can be made to work but it's a really ugly way of doing it. Just use AJAX instead.