title: Alternative to sleep() function in php
body: <p>I am currently using <code>sleep()</code> function for achieving some task but I am getting security bug in my sonarqube. Do we have any other function to achieve same task in PHP? Basically, I want to call the same function after every 10 seconds. I can not use a cron job as a cron job requires atleast a minute.
  Currently, I am running background task which in I am calling some function after every 10 seconds.</p>