sleep
(PHP 3, PHP 4 )sleep -- Delay execution
Description
void sleep ( int seconds)
The sleep() function delays program execution for the given number of seconds. 例子 1. sleep() example<?php// current time
echo date('h:i:s') . "\n";// sleep for 10 seconds
sleep(10);// wake up !
echo date('h:i:s') . "\n";?>  This example will output (after 10 seconds) 05:31:23
05:31:33
 
 
See also usleep() and set_time_limit() 

解决方案 »

  1.   

    多谢多谢,我真笨,竟然忘记去搜索这些函数的名字,呵呵,我在 Date and Time 和进程相关的函数分类里面找了半天,原来它在 Miscellaneous Function 分类里面……
      

  2.   

    你自己不是写出来了吗?
    sleep(5);
      

  3.   

    void sleep ( int seconds )The sleep function delays program execution for the given number of seconds. See also usleep() and set_time_limit() 
      

  4.   

    php中支持线程吗?我想问一下,在我的印象中好像不支持哦.
      

  5.   

    可以支持http://www.phpx.com/happy/thr62604.html
      

  6.   

    楼上那位提供的网址我看了,其实PHP本身是不提供多线程的.但有方法可以做到类似多线程去做.我又长见识了.谢了:)