title: Array lose keys after second foreach loop
body: <p>What I use:</p>
  
  <pre><code>$raw = file_get_contents('url');
  $raw = json_decode($raw,true);
  
  foreach($raw['data'] as $spell){
    var_dump($spell);
  }
  </code></pre>
  
  <p>What I get:</p>
  
  <pre><code>array(1) {
      ["image"]=&gt; array(2){
          ["w"]=&gt; int(48)
          ["h"]=&gt; int(48)
      }
  }
  </code></pre>
  
  <p>For now everything is fine.  </p>
  
  <p>But when I use a second loop (because of more than 1 keys &amp; values) like this:</p>
  
  <pre><code>foreach ($raw['data'] as $spell){
      foreach ($spell['image'] as $image) {
          var_dump($image);
      }
  }
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>int(48) int(48)
  </code></pre>
  
  <p>Nothing else.<br>
  I expected to get:</p>
  
  <pre><code>array(2){
      ["w"]=&gt; int(48)
      ["h"]=&gt; int(48)
  }
  </code></pre>
  
  <p>What am i doing wrong?</p>