title: How can I iterate PHP $_FILES array?
body: <p>This might be stupid question, but PHPs array $_FILES has very odd format, which I have never used before. Can somebody tell me how can I iterate this array in sane way ? I have used to iterate objects or object like arrays, but this format is very odd for me. Is there any way to iterate this array like object array?</p>
  
  <pre><code>( [attachments] =&gt; 
      Array ( 
          [name] =&gt; Array ( 
              [0] =&gt; test1.png 
              [1] =&gt; test2.png 
          ) 
          [type] =&gt; Array ( 
              [0] =&gt; image/png 
              [1] =&gt; image/png 
          ) 
          [tmp_name] =&gt; Array ( 
              [0] =&gt; /tmp/phpmFkEUe 
              [1] =&gt; /tmp/phpbLtZRw 
          )
          [error] =&gt; Array ( 
              [0] =&gt; 0 
              [1] =&gt; 0 
          ) 
          [size] =&gt; Array ( 
              [0] =&gt; 9855 
              [1] =&gt; 3002 
          ) 
      ) 
  )
  </code></pre>