title: Php array split based on array key name in
body: <p>When I submit the form I get the output of array format like: </p>
  
  <pre><code>Array ( [quantity_2] =&gt; 2 [extra_2] =&gt; 1 [quantity_1] =&gt; 1 [quantity_3] =&gt; 5 [extra_3] =&gt; 1 )
  </code></pre>
  
  <p>I want to split this array based on array key last number like:</p>
  
  <pre><code>Array ( [quantity_2] =&gt; 2 [extra_2] =&gt; 1)
  Array ( [quantity_1] =&gt; 1 [extra_2] =&gt; )
  Array ( [quantity_3] =&gt; 5 [extra_3] =&gt; 1)
  </code></pre>
  
  <p>Many thanks for your valuable replay.</p>