title: PHP get array value from json
body: <p>Using PHP,  how would I access the inner array values,  specific to this example the values specific to each game array,  from a json feed similar to this:</p>
  
  <pre><code>Array
  (
  [startIndex] =&gt; 3
  [refreshInterval] =&gt; 60
  [games] =&gt; Array
      (
          [0] =&gt; Array
              (
                  [id] =&gt; 2013020004
                  [gs] =&gt; 5
                  [ts] =&gt; WEDNESDAY 10/2
                  [tsc] =&gt; final
                  [bs] =&gt; FINAL
                  [bsc] =&gt; final
              )
  
          [1] =&gt; Array
              (
                  [id] =&gt; 2013020005
                  [gs] =&gt; 5
                  [ts] =&gt; WEDNESDAY 10/2
                  [tsc] =&gt; final
                  [bs] =&gt; FINAL
                  [bsc] =&gt;
              )
  </code></pre>
  
  <p>I have tried nesting a foreach loop inside a foreach loop similar to this:</p>
  
  <pre><code>foreach ($json as $key =&gt; $jsons) {
  foreach ($jsons as $my =&gt; $value) {
      echo $value; 
  }
  }
  </code></pre>