convert string to php array, jquery serialize on form
<p>I have a form and am sending the data to a backend php script using:</p>

<pre><code>var fields = $('#myform').serializeArray();
</code></pre>

<p>And then doing a post.  Some of my inputs are named as arrays so when the data gets posted, I have an array like below.  How do I convert the attribute pieces back into one attribute array with sub arrays?</p>

<pre><code>[1]=&gt;
  array(2) {
    ["name"]=&gt;
    string(20) "attribute[26][higher]"
    ["value"]=&gt;
    string(2) "21"
  }
  [2]=&gt;
  array(2) {
    ["name"]=&gt;
    string(20) "attribute[27][higher]"
    ["value"]=&gt;
    string(2) "20"
  }
</code></pre>
