(PHP 3, PHP 4, PHP 5)
Delays program execution for the given number of micro seconds.
micro_seconds
Halt time in micro seconds. A micro second is one millionth of a second.
Żadna wartość nie jest zwracana.
Przykład 1. usleep() example
<?php// Current timeecho date('h:i:s') . "\n";// wait for 2 secondsusleep(2000000);// back!echo date('h:i:s') . "\n";?>
Powyższy przykład wyświetli:
11:13:28 11:13:30