Greetings, using the example of https://github.com/wielski/PHPThreads/blob/master/demos/demo3.php sleep works fine. The question is how can I use my function there (it works with the database and updates the information) The usual call goes like this:

echo the_server(); 

Displays the result as a string with numbers. How do I use the_server () instead of sleep? Or can someone tell the idea better?

  • What is not right now? Why change? - titov_andrei
  • @titov_andrei on the example in the demo is specified sleep, but then I need to transfer my function. a - wwwplaton

0