I have an array called $output
which contains:
Array
(
[0] => Array
(
[0] => J Arora
[1] => India
)
[1] => Array
(
[0] => J Ramuj
[2] => Russia
)
[2] => Array
(
[1] => KJ Tris
[2] => Germany
)
)
How can i insert these data into mysql database table like these
---------------
name | country
-------|---------
J Arora|India
-------|--------
J Ramuj|Russia
-------|--------
KJ Tris|Germany
-------|--------
I am not able to fetch these values separately from given array as their index are not in sequence.