title: How to split POST array in groups?
body: <p>I need each value of each array add on new array like person.</p>
  
  <pre><code>&lt;div class="person"&gt;
      &lt;input name="name[]"&gt;
      &lt;input name="type[]"&gt;
  &lt;/div&gt;
  &lt;div class="person"&gt;
      &lt;input name="name[]"&gt;
      &lt;input name="type[]"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Could be two persons how also ten o more is dynamic.</p>
  
  <p>$_POST return that:</p>
  
  <pre><code>Array( [name] =&gt; Array([0] =&gt; oliver [1] =&gt; tom) [type] =&gt; Array([0] =&gt; developer [1] =&gt; designer) )
  </code></pre>
  
  <p>I want something like that the two persons separate, but i fail trying:</p>
  
  <pre><code>$person1 = array(
  "name" =&gt; "oliver"
  "type" =&gt; "developer"
  )
  
  $person2 = array(
  "name" =&gt; "tom"
  "type" =&gt; "designer"
  )
  </code></pre>