Home  >  Article  >  Backend Development  >  PHP语句问题

PHP语句问题

WBOY
WBOYOriginal
2016-06-23 13:58:07762browse

PHP语句执行到某一行时候,隔几秒钟之后再执行下一行
比如执行到 echo A;这句之后,隔3秒,执行下一行echo B;
怎样才能做到?需要在这两行代码直接写什么代码


回复讨论(解决方案)

sleep()

sleep()


sleep()具体的怎么写,三秒

sleep(3);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn