Separate form array by row added
<p>I have this file upload input in a form:</p>

<pre><code>&lt;input type="file"  multiple name="file[]" /&gt;
</code></pre>

<p>I have a script which appends this multiple times within the form.</p>

<p>Could I determine which row each file[] array belongs to in php? </p>

<pre><code>&lt;?php 
if(isset($_FILES['file'])=== true){
$files = array ($_FILES['file']);
}
    var_dump($files);
</code></pre>

<p>?></p>

<pre><code>array (size=1)
  0 =&gt; 
array (size=5)
  'name' =&gt; 
    array (size=5)
      0 =&gt; string 'IMG_8502 f 5 .jpg' (length=17)
      1 =&gt; string 'IMG_8507 f 5 .jpg' (length=17)
      2 =&gt; string 'IMG_8508 f 5 .jpg' (length=17)
      3 =&gt; string 'IMG_8529 f 5 .jpg' (length=17)
      4 =&gt; string 'IMG_8612 fff 5 .jpg' (length=19)
  'type' =&gt; 
    array (size=5)
      0 =&gt; string 'image/jpeg' (length=10)
      1 =&gt; string 'image/jpeg' (length=10)
      2 =&gt; string 'image/jpeg' (length=10)
      3 =&gt; string 'image/jpeg' (length=10)
      4 =&gt; string 'image/jpeg' (length=10)
  'tmp_name' =&gt; 
    array (size=5)
      0 =&gt; string 'C:\wamp\tmp\phpE892.tmp' (length=23)
      1 =&gt; string 'C:\wamp\tmp\phpE8D1.tmp' (length=23)
      2 =&gt; string 'C:\wamp\tmp\phpE911.tmp' (length=23)
      3 =&gt; string 'C:\wamp\tmp\phpE950.tmp' (length=23)
      4 =&gt; string 'C:\wamp\tmp\phpE99F.tmp' (length=23)
  'error' =&gt; 
    array (size=5)
      0 =&gt; int 0
      1 =&gt; int 0
      2 =&gt; int 0
      3 =&gt; int 0
      4 =&gt; int 0
  'size' =&gt; 
    array (size=5)
      0 =&gt; int 2776165
      1 =&gt; int 2380025
      2 =&gt; int 2456713
      3 =&gt; int 2585779
      4 =&gt; int 1770128
</code></pre>

<p>I would like to get each set of files uploaded into their own array. In other words name 0-4 set to be array 0 and then for the next set of files uploaded in the next row to be array 1 and so on. so i can store each set of files with their associated text in the form</p>
