title: How to convert array from single array to multidimensional array on php
body: <p>I have an array from excel file like this.</p>
  
  <pre class="lang-php prettyprint-override"><code>   $array = [
       ['parent 1', '10000', '20000'],
       ['parent 1', '15000', '21000'],
       ['parent 2', '13000', '22000'],
       ['parent 2', '11000', '5000'],
     ];
  </code></pre>
  
  <p>How to convert array above with php to array like this below</p>
  
  <pre class="lang-php prettyprint-override"><code>   $array = [
       'parent 1' =&gt; [
          ['10000', '20000'],
          ['15000', '21000']
       ],
       'parent 2' =&gt; [
          ['13000', '22000'],
          ['11000', '5000']
       ]
     ];
  </code></pre>