title: Increment an array counter
body: <p>In the loop below I want <code>$value[0]</code> to increment on each pass of the loop. So, if <code>$count = 2</code> the loop will run twice and output <code>$key . " " . $value[0]</code> and <code>$key . " " . $value[1]</code>. </p>
  
  <p>Right now, my loop is outputting <code>$key . " " . $value[0]</code> twice. What did I do wrong?</p>
  
  <pre><code>$count = count($updates['positionTitle']);
  
  for($i = 1; $i&lt;=$count; $i++){
      foreach($updates as $key =&gt; $value){
          if(!is_array($value))
             echo $key . " " . $value . "&lt;br/&gt;";
           else 
             echo $key . " " . $value[0]++ . "&lt;br/&gt;";
      }
  }
  </code></pre>