title: Iterate through array and get key and value
body: <p>I need to iterate through a dynamic array.  The array will look something like the following:</p>
  
  <pre><code>Array
  (
      [2010091907] =&gt; Array
          (
              [home] =&gt; Array
              (
                  [score] =&gt; Array
                  (
                          [1] =&gt; 7
                          [2] =&gt; 17
                          [3] =&gt; 10
                          [4] =&gt; 7
                          [5] =&gt; 0
                          [T] =&gt; 41
                      )
  
                  [abbr] =&gt; ATL
                  [to] =&gt; 2
              )
  
          [away] =&gt; Array
              (
                  [score] =&gt; Array
                      (
                          [1] =&gt; 0
                          [2] =&gt; 7
                          [3] =&gt; 0
                          [4] =&gt; 0
                          [5] =&gt; 0
                          [T] =&gt; 7
                      )
  
                  [abbr] =&gt; ARZ
                  [to] =&gt; 2
              )
  
          [weather] =&gt; 
          [media] =&gt; Array
              (
                  [tv] =&gt; FOX
                  [sat] =&gt; 709
                  [sathd] =&gt; 709
                  [radio] =&gt; Array
                      (
                          [home] =&gt; 153
                          [away] =&gt; 90
                      )
  
              )
  
          [bp] =&gt; 13
          [yl] =&gt; 
          [qtr] =&gt; Final
          [down] =&gt; 0
          [togo] =&gt; 0
          [clock] =&gt; 00:26
          [posteam] =&gt; ARZ
          [note] =&gt; 
          [redzone] =&gt; 
          [stadium] =&gt; Georgia Dome
      )
  </code></pre>
  
  <p>I need it to be dynamic and for testing purposes, I need to be able to call it via:</p>
  
  <p><code>echo "Key: $key; Value: $value&lt;br /&gt;\n";</code></p>
  
  <p>I'm going to later take this information and place it into a mysql database, but for now, I need to brush up on arrays and figure out how to format the data.  </p>
  
  <p>Any help is appreciated.</p>