title: Timed loop in php
body: <p>I just want to print a counting from 1 to 10 at an interval of 10 sec between each integer.</p>
  
  <p>eg. </p>
  
  <pre><code>$i=10; //Time delay    
  for($j=1;$j&lt;11;$j++)  
  {  
      echo $j;  
      //do something to delay the execution by $i seconds  
  }
  </code></pre>
  
  <p>I have tried everything <code>including flush()</code>, <code>ob_flush()</code>, <code>ob_implicit_flush()</code> but all i get is a frozen screen untill the whole time is executed.</p>