title: how to make a php function loop every 5 seconds
body: <p>I am tyring to make a php function that updates every second using php itself no other languages, just pure PHP codes.</p>
  
  <pre><code>function exp(){
  //do something
  }
  </code></pre>
  
  <p>I want it to return a value each second. Like update every second.</p>