title: How to POST data as an indexed array of arrays (without specifying indexes)
body: <p>i'm having some problem with posting data as an array of array. This is how i'd like my data to be POSTED:</p>
  
  <pre><code>array(
  ['someName'] =&gt;
  array([0] =&gt;
        array(['description'] =&gt;890
              ['valore'] =&gt;444)
        [1] =&gt;
        array(['description'] =&gt;98090
              ['value'] =&gt;77)
  ) 
  </code></pre>
  
  <p>I know i can achieve this if my html is like this:</p>
  
  <pre><code>&lt;input type='text' name="someName[0][value]"&gt;
  &lt;input type='text' name="someName[0][description]"&gt;
  &lt;input type='text' name="someName[1][value]"&gt;
  &lt;input type='text' name="someName[1][description]"&gt;
  </code></pre>
  
  <p>My problem is that the input fields are on rows of a table and the user can add/remove as many rows as he want, so i can't have fixed index (or i have to modify the name of the input fields each time a row is added since every time i add a row i clone the upper row in the table)</p>
  
  <p>So what i am asking is one of these two things:</p>
  
  <p>1) is there a way to post data the way i want without specifing an index</p>
  
  <p>2)if not, how can i modify dynamically the new input field so that they have an updated name with the new index?</p>
  
  <p>EDIT - i had alredy tried using <code>name="someName[value][]"</code> and <code>name="someName[description][]"</code> but the output is not the desired one:</p>
  
  <pre><code>array(['terreniOneri'] =&gt;
         array(['descrizione'] =&gt;array([0] =&gt;890
                                        [1] =&gt; 98090)
                 ['valore'] =&gt;array([0] =&gt;444
                                    [1] =&gt;677)
        ) 
  </code></pre>
  
  <p>i know i can iterate on this array in php i was just wondering if i could avoid it.</p>