Help me to reformat my array which is something like this:
Array
(
[sampleArr] => Array
(
[0] => Array
(
[id] => 1
)
[1] => Array
(
[id] => 2
)
)
)
This is my array need to be reformat like in the above array:
Array
(
[sampleArr] => Array
(
[id] => 1
[id2] => 2
)
)