title: What is the best way to loop through this array in PHP?
body: <p>I have this array... how do you print each of the filepath and filename? What is the best way to do this?</p>
  <pre><code>  Array (
      [0] =&gt; Array (
               [fid] =&gt; 14
               [list] =&gt; 1
               [data] =&gt; Array (
                           [alt] =&gt;
                           [title] =&gt;
                         )
               [uid] =&gt; 1
               [filename] =&gt; trucks_10785.jpg
               [filepath] =&gt; sites/default/files/trucks_10785.jpg
               [filemime] =&gt; image/jpeg
               [filesize] =&gt; 143648
               [status] =&gt; 1
               [timestamp] =&gt; 1291424171
               [nid] =&gt; 8
             )
      [1] =&gt; Array (
               [fid] =&gt; 19
               [list] =&gt; 1
               [data] =&gt; Array (
                           [alt] =&gt;
                           [title] =&gt;
                         )
               [uid] =&gt; 1
               [filename] =&gt; school.jpg
               [filepath] =&gt; sites/default/files/school.jpg
               [filemime] =&gt; image/jpeg
               [filesize] =&gt; 115355
               [status] =&gt; 1
               [timestamp] =&gt; 1292029563
               [nid] =&gt; 8
             )
      [2] =&gt; Array (
               [fid] =&gt; 20
               [list] =&gt; 1
               [data] =&gt; Array (
                           [alt] =&gt;
                           [title] =&gt;
                         )
               [uid] =&gt; 1
               [filename] =&gt; Life_is_wonderful_by_iNeedChemicalX.jpg
               [filepath] =&gt; sites/default/files/Life_is_wonderful_by_iNeedChemicalX_0.jpg
               [filemime] =&gt; image/jpeg
               [filesize] =&gt; 82580
               [status] =&gt; 1
               [timestamp] =&gt; 1292029572
               [nid] =&gt; 8
             )
      [3] =&gt; Array (
               [fid] =&gt; 21
               [list] =&gt; 1
               [data] =&gt; Array (
                           [alt] =&gt;
                           [title] =&gt;
                         )
               [uid] =&gt; 1
               [filename] =&gt; school_rural.jpg
               [filepath] =&gt; sites/default/files/school_rural.jpg
               [filemime] =&gt; image/jpeg
               [filesize] =&gt; 375088
               [status] =&gt; 1
               [timestamp] =&gt; 1292029582
               [nid] =&gt; 8
             )
    )
  </code></pre>