title: PHP json encode foreach only loops through the first item
body: <p>So I'm busy at creating a system.
  That system generates a bit of JSON</p>
  
  <p>For example:</p>
  
  <pre><code>{
      "Builds": [
          {
              "title": "test",
              "item1": "3",
              "item2": "3",
              "item3": "0",
              "item4": "0",
              "item5": "0",
              "item6": "0"
          },
          {
              "title": "test2",
              "item1": "3",
              "item2": "3",
              "item3": "2",
              "item4": "0",
              "item5": "0",
              "item6": "0"
          }
      ]
  }
  </code></pre>
  
  <p>Now im trying to get every "build" with a foreach in PHP this only loops the first time and then does nothing.</p>
  
  <pre><code>$i = 0;
  
  foreach($builds as $build){
      //echo $i;
      echo $build[$i]['title'];
      echo '&lt;img src="' . $build[$i]['item1'] . '" alt=""&gt;&lt;/img&gt;';
      $i++;
  }
  </code></pre>