title: $_Post Large Fieldset - Easy way to put into array
body: <p>I have a page that basically recreates a database table and allows the user to edit fields for multiple records at a time. When they press save I am submitting a post that keeps all my field names in the correct field name array. i.e one field name is "table_name[name][]" this gives me an array that looks like exactly how I want it</p>
  
  <pre><code>["name"] =&gt; array(2) {
        [0]=&gt; "name 1"
        [1]=&gt; "name 2"
   }
  </code></pre>
  
  <p>And I have a LOT of fields that can be edited. So my question: What is the best way to loop through my post array and create an array that is similar in structure to.</p>
  
  <pre><code>$updates[1] =&gt; array{
      id   =&gt; id from first record
      name =&gt; name from first record
      etc  =&gt; remaining info from first record
  }
  [2] =&gt; array{
      id   =&gt; id from second record
      name =&gt; name from second record
      etc  =&gt; remaining info from second record
  }
  </code></pre>
  
  <p>Is there an easy way to do this other than having to write out every single field?</p>