Home > Backend Development > PHP Tutorial > php sleep function delayed execution

php sleep function delayed execution

WBOY
Release: 2016-07-29 09:05:42
Original
2329 people have browsed it

sleep(seconds); //seconds seconds count


is generally used in scheduled execution tasks, indicating how many seconds to delay the execution of the program. For example

<code><span>get_lazada_order( $seller_info,<span>1</span> )</span>;<span>//执行方法1</span><span>sleep(<span>60</span>)</span>;
    <span>get_lazada_order( $seller_info,<span>2</span> )</span>;<span>//执行方法2</span><span>sleep(<span>60</span>)</span>;
    <span>get_lazada_order( $seller_info,<span>3</span> )</span>;<span>//执行方法3</span></code>
Copy after login
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the delayed execution of the PHP sleep function, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

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