title: PHP loop through array and find highest value
body: <p>Hey all i am trying to see what the <strong>highest vote count</strong> is within this array and then get the <strong>file_path</strong> from that.</p>
  
  <pre><code>images =&gt;
    backdrops =&gt;
      0 =&gt;
        file_path =&gt; /gM3KKiN80qbJgKHjPnmAfwxSicG.jpg
        width =&gt; 1920
        height =&gt; 1080
        iso_639_1 =&gt;
        aspect_ratio =&gt; 1.78
        vote_average =&gt; 5.4529616724739
        vote_count =&gt; 19
      1 =&gt;
        file_path =&gt; /7u3pxc0K1wx32IleAkLv78MKgrw.jpg
        width =&gt; 1920
        height =&gt; 1080
        iso_639_1 =&gt;
        aspect_ratio =&gt; 1.78
        vote_average =&gt; 5.4509803921569
        vote_count =&gt; 22
      2 =&gt;
        etc etc....
  </code></pre>
  
  <p>I tried doing this but was unable to get any data:</p>
  
  <pre><code>foreach($theMovieData['images']['backdrops'][0]['vote_count'] as $key =&gt; $item) {
      echo $item;
  }
  </code></pre>
  
  <p>What would i be doing incorrect? And how would i get the <strong>file_path</strong> after finding the <strong>highest vote</strong>?</p>
  
  <p>Thanks for the help!</p>