小智 6
您可以使用该sleep()功能:
int sleep ( int $seconds )
// Delays the program execution for the given number of seconds.
Run Code Online (Sandbox Code Playgroud)
例子:
public function sleep(){
sleep(1);
return 'slept for 1 second';
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8554 次 |
| 最近记录: |