Why while loop stop executing on 1 loop, when there is inside another loop?
<p>Example:</p>

<pre><code>&lt;?php 
$text= "Taigi dabar skaiciuojam zodzius";
$zodziai = str_word_count($text, 1);
$skaicius = str_word_count($text, 0);
$n = 0;
$i = 0;
while ($i++ &lt; 5) {
    echo $zodziai[$n++]; echo ' ';
    $i = 1;
    while ($i &lt;= 10) {
        echo $i++; 
    }    
}           
?&gt;
</code></pre>

<p>Outputs: Taigi 12345678910 </p>

<p>Without while outputs:
Taigi dabar skaiciuojam zodzius </p>
