title: How to get key and values in php
body: <p><strong><em>I KNOW IMDB WONT ALLOW THIS. THIS IS JUST A TEST</em></strong> <br>
  i'm so stuck on this very basic array. i've tried every thing but i cant get this printed . i'm using this php library <a href="https://github.com/FabianBeiner/PHP-IMDB-Grabber" rel="nofollow noreferrer">https://github.com/FabianBeiner/PHP-IMDB-Grabber</a>
  for grabbing some information from imdb website. <br></p>
  
  <p>The output is multidimensional array but i can't print it.
  i'm using this method <code>getCastImages($iLimit = 0, $bMore = true, $sSize = 'small', $bDownload = false)</code>. <br>
  the out put is like this:</p>
  
  <pre><code>Array
  (
      [Ryan Reynolds] =&gt; https://m.media-amazon.com/images/M/MV5BOTI3ODk1MTMyNV5BMl5BanBnXkFtZTcwNDEyNTE2Mg@@._V1_SX26_CR0,0,26,35_.jpg
      [Karan Soni] =&gt; https://m.media-amazon.com/images/M/MV5BMTg0NjQ1MTU1MF5BMl5BanBnXkFtZTgwNTAyMzc1MDE@._V1_SX26_CR0,0,26,35_.jpg
  )
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>Array
  (
      [getAka] =&gt; Array
          (
              [name] =&gt; Aka
              [value] =&gt; X-Men Origins: Deadpool (United States) | X-Men: Deadpool (United States) | Дедпул (Ukraine) | Дэдпул (Russia) | Dedpul (Serbia)
          )
  
      [getAkas] =&gt; Array
          (
              [name] =&gt; Akas
              [value] =&gt; Deadpool / Argentina / Deadpool / Chile / Deadpool / Czech Republic / Deadpool / Germany / Deadpool / Denmark / Deadpool / Spain / Deadpool / Finland / Deadpool / France / Deadpool / Greece / Deadpool / Croatia / Deadpool / Italy / Дедпул / Republic of Macedonia / Deadpool / Mexico / Deadpool / Norway / Deadpool / Portugal / Deadpool / Romania / Dedpul / Serbia / Дэдпул / Russia / Deadpool / Sweden / Дедпул / Ukraine
          )
  )
  </code></pre>
  
  <p><strong>update:</strong> <br> i don't know why but the <code>foreach</code> should be like this!</p>
  
  <pre><code>  $castImages = $IMDB-&gt;getCastImages(5, false, 'mid');
      foreach (explode(' / ', $IMDB-&gt;getCast(5, false)) as $name) {
          echo '&lt;img src="' . $castImages[$name] . '" alt="' . $name . '"&gt;' . $name . '&lt;br&gt;';
      }
  </code></pre>