How to insert to multiple row from array in CakePHP? This is my print_r($_POST)
Array (
[category] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
)
[surface_area] => Array
(
[0] => 1
[1] => 2
[2] => 24
[3] => 342
[4] => 235
)
[tree_area] => Array
(
[0] => 252
[1] => 254
[2] => 252
[3] => 635
[4] => 457
)
[no_of_tree] => Array
(
[0] => 457
[1] => 658
[2] => 3563
[3] => 6357
[4] => 363
)
)
I have tried using foreach and for loop, but not working. Any idea? Thanks
If your want to save the content of your Array
You can do it by