I have this array:
Array
(
[0] => Array
(
[char_id] => 205
)
[1] => Array
(
[char_id] => 954
)
)
And this array:
Array
(
[0] => Array
(
[england] => 523
)
[1] => Array
(
[poland] => 9546
)
)
How I can combine this arrays for inserting in database? I use codeigniter! I want this result:
$data = Array
(
Array
(
[char_id] => 205
[england] => 523
)
Array
(
[char_id] => 954
[poland] => 9546
)
)
I want to use function insert_batch $this->db->insert_batch('mytable', $data);
Number of elements from arrays is different but same count every time!