title: How to iterate arrays nested in arrays
body: <p>I have the json array below and im trying to access the ProductResults bit.</p>
  <p>I want the output to be somthing like this:</p>
  <pre><code>Term: 47, Type:HP, Payment: 229.4 
  Term: 47, Type:PCP, Payment: 172.23 
  Term: 60, Type:PCP, Payment: 186.82 
  </code></pre>
  <p>But im struggeling to even access other parts of the array.</p>
  <p>PHP:</p>
  <pre><code>$json = json_decode($resp, true);
  
  foreach ($json['VehicleResults'] as $item)
  {
      $data = $item['FinanceProductResults'];
  
      $v0 = $data['Term'];
      
      echo $v0;
  
  }
  </code></pre>
  <p>JSON:</p>
  <pre><code>{
      &quot;VehicleResults&quot;: [{
          &quot;Id&quot;: &quot;0&quot;,
          &quot;FinanceProductResults&quot;: [{
              &quot;Term&quot;: 47,
              &quot;AnnualMileage&quot;: 6000,
              &quot;Deposits&quot;: 1000,
              &quot;ProductResults&quot;: [{
                  &quot;Key&quot;: &quot;HP&quot;,
                  &quot;Payment&quot;: 229.4
              }, {
                  &quot;Key&quot;: &quot;PCP&quot;,
                  &quot;Payment&quot;: 172.23
              }]
          }, {
              &quot;Term&quot;: 60,
              &quot;AnnualMileage&quot;: 6000,
              &quot;Deposits&quot;: 1000,
              &quot;ProductResults&quot;: [{
                  &quot;Key&quot;: &quot;HP&quot;,
                  &quot;Payment&quot;: 186.82
              }]
          }]
      }]
  }
  </code></pre>