Home > Backend Development > PHP Tutorial > PHP语句有关问题

PHP语句有关问题

WBOY
Release: 2016-06-13 11:55:59
Original
760 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template