using sleep(), I cannot get my values to echo
<p>I'm using a sleep function inside of a foreach loop and I'd like to echo the value inside the loop. Why isn't this working? The $test var inside the loop never changes from 0.</p>

<pre><code>foreach($test as $val){
 ob_start();
 echo $test++;
 sleep(1);
 ob_end_flush();
}
</code></pre>
