[eluser]Aspi[/eluser]
Hello Forum members,
I get this array result, but this is not right for me
Code:
foreach($query->result_array() as $row){
$xml_data[] = $row;}
return $xml_data; ==> generate
Array
(
[0] => Array
(
[partnertipusID] => 1
[partnertipusnev] => A
)
[1] => Array
(
[partnertipusID] => 2
[partnertipusnev] => B
)
[2] => Array
(
[partnertipusID] => 3
[partnertipusnev] => C
)
[3] => Array
(
[partnertipusID] => 4
[partnertipusnev] => D
)
)
i would like get this format
Code:
Array
(
[0] => Array
(
[0] => 1
[1] => A
)
[1] => Array
(
[0] => 2
[1] => B
)
[2] => Array
(
[0] => 3
[1] => C
)
[3] => Array
(
[0] => 4
[1] => D
)
)
THX