title: CakePHP 2 Insert Multiple Rows from Array
body: <p>How to insert to multiple row from array in CakePHP? This is my print_r($_POST)</p>
  
  <pre><code>Array ( 
  [category] =&gt; Array
      (
          [0] =&gt; 1
          [1] =&gt; 2
          [2] =&gt; 3
          [3] =&gt; 4
          [4] =&gt; 5
      )
  
  [surface_area] =&gt; Array
      (
          [0] =&gt; 1
          [1] =&gt; 2
          [2] =&gt; 24
          [3] =&gt; 342
          [4] =&gt; 235
      )
  
  [tree_area] =&gt; Array
      (
          [0] =&gt; 252
          [1] =&gt; 254
          [2] =&gt; 252
          [3] =&gt; 635
          [4] =&gt; 457
      )
  
  [no_of_tree] =&gt; Array
      (
          [0] =&gt; 457
          [1] =&gt; 658
          [2] =&gt; 3563
          [3] =&gt; 6357
          [4] =&gt; 363
      )
  </code></pre>
  
  <p>)</p>
  
  <p>I have tried using foreach and for loop, but not working. Any idea?
  Thanks</p>