PHP睡眠并广播到频道

我需要向一些收听广播频道的用户(Android应用程序)广播,并要求他们发布位置,因此我等待5秒钟,在此期间,他们将发布其经/纬度位置,此后,我将搜索基于在这个结果上。

To do so I use sleep() function. The PHP will wait and return results when the script is completed. I would like to know what is the PHP behavior in broadcasting? Does PHP broadcast after 5 seconds or no, it immediately broadcasts and doesn't wait for 5 seconds ?

评论