title: php json_decode how to output array
body: <p>Here is my php code with json formatted string:</p>
  
  <pre><code>&lt;?php
  
  $string='{"items":  [
      {
      "address":"W 7th Ave"
      },
      {
      "address":"W 8th St"
      }
      ]}'; 
  
  $json = json_decode($string, true);
  
      foreach ($json as $key =&gt; $value){
          echo "$key: $value\n";
      };
  
  ?&gt;
  </code></pre>
  
  <p>I want to learn how to parse/output json string into something I can show in html or put into database .. however i am stuck on something that is prob very simple but I've spent most of the morning trying to figure out.</p>
  
  <p>What I want to understand is why the results of my code above gives me the following result:</p>
  
  <p><code>"items: Array"</code></p>
  
  <p>And not what I want/expect to get:</p>
  
  <pre><code>"items: W 7th Ave"
  "items: W 8th St"
  </code></pre>
  
  <p>What am i missing?  Isn't "Address" the next "level" down from "Item" in the array? </p>