title: Change key on array_chunk php
body: <p>I have array based POST like this :</p>
  
  <pre><code>Array
  (
  [condition] =&gt; Array
      (
          [0] =&gt; 1
      )
  
  [container] =&gt; 
  [cleaning] =&gt; Y
  [owner] =&gt; Eagletainer
  [last_cargo] =&gt; 1
  [vessel] =&gt; 
  [insulation] =&gt; 1
  [tare] =&gt; 
  [gross] =&gt; 
  [capacity] =&gt; 
  [unit_type] =&gt; IMO 1
  [date_of_manu] =&gt; 
  [name_manu] =&gt; 
  [last25] =&gt; 
  [cert25] =&gt; 
  [last5] =&gt; 
  [cert5] =&gt; 
  [list2_item_0] =&gt; 1
  [list2_kondisi_0] =&gt; 9
  [list3_item_0] =&gt; 15
  [list3_kondisi_0] =&gt; 3
  [comments] =&gt; 
  )
  </code></pre>
  
  <p>My case is, I want to chunk a lot of those element array into another array for insert_batch in my database.
  This is the php code to chunk those array: </p>
  
  <pre><code>public function get_partition($array, $p, $c) {
      $partition = array_slice($array, $p);
      array_pop($partition);
      return $chunk = array_chunk($partition, $c);
  }
  </code></pre>
  
  <p>Now, use it,</p>
  
  <pre><code>$detail = $this-&gt;get_partition($this-&gt;input-&gt;post(), 17, 2);
  </code></pre>
  
  <p>The result is :</p>
  
  <pre><code>Array
  (
  [0] =&gt; Array
      (
          [0] =&gt; 1
          [1] =&gt; 9
      )
  
  [1] =&gt; Array
      (
          [0] =&gt; 15
          [1] =&gt; 3
      )
  
  )
  </code></pre>
  
  <p>My question in, how to change the key [0] and [1] into another key like [ID] and [CODE_DAMAGE]</p>
  
  <p>I want them looked like this :</p>
  
  <pre><code>Array
  (
  [0] =&gt; Array
      (
          [ID] =&gt; 1
          [CODE_DAMAGE] =&gt; 9
      )
  
  [1] =&gt; Array
      (
          [ID] =&gt; 15
          [CODE_DAMAGE] =&gt; 3
      )
  
   )
  </code></pre>