php echo first row wait/sleep then echo second row
<p>I would like to know is there a way to echo first row from table in database wait/sleep for 5 seconds and then echo the second row?</p>

<p>Thank you in advance for your help!</p>

<pre><code>$conn = mysqli_connect('localhost', 'root', '','database');
$strSql=$conn-&gt;query("SELECT words FROM load ORDER BY id ASC ");
if($strSql-&gt;num_rows &gt;0) {
    while ($row = $strSql-&gt;fetch_assoc()) {
    $rows[]=$row;
    foreach($rows as $row){
       $words1=$row['words'];
               echo '&lt;div class="animatedText"&gt; '.$words1.'&lt;/div&gt;';
       //let's say sleep(5); and then print second row???
       }
   }
}
</code></pre>