PHP loop needs to be incremented by more than one each time. How can I exit out of the loop when condition is met?
<p>I want to combine three php arrays by taking one entry and placing it underneath the other, like so:</p>

<pre><code>while ($i &lt;= $no)
{
        $results[$i] = $blah[$i];
        $i++;
        $results[$i] = $thing[$i];
        $i++;
        $results[$i] = $something[$i];
        $i++;
}
</code></pre>

<p>However the problem with this is $no can be exceeded as I need to increment $i three times in each loop.</p>

<p>End result:</p>

<pre><code>array (size=12)
  1 =&gt; 
    array (size=4) (from $blah)
  2 =&gt; 
    array (size=4) (from $thing)
  3 =&gt; 
    array (size=4) (from $something)
  4 =&gt; 
    array (size=4) (from $blah)
</code></pre>

<p>...this needs to continue until the size of $no is met</p>
