Solution:1
Try this..this is your old array..try to arrange it..consider it as example..
$array = array(0 => array("serial_id"=>"214"),
1 => array("serial_id"=>"218"),
2 => array("serial_id"=>"221"),
3 => array("serial_id"=>"319")
);
You can use foreach to get inner element in one new array $new_array = array(); foreach($array as $key=>$inner_array){
foreach($inner_array as $k=>$v){
$new_array[$k] = $v;
}
}
Output will be
$new_array = array(
'serial_id_1' => string '214',
'serial_id_2' => string '218',
'serial_id_3' => string '221',
'serial_id_4' => string '319',
);