this is the initial array:
$arr = array(
"CC"=>array(
"recharge_status"=> 1,
"withdraw_status"=> 1,
"trade_status"=> 1,
"withdraw_fee"=> 0.01,
"precision"=> 7,
),
"DD"=>array(
"recharge_status"=> 2,
"withdraw_status"=> 2,
"trade_status"=> 2,
"withdraw_fee"=> 0.02,
"precision"=> 8,
),
"EE"=>array(
"recharge_status"=> 3,
"withdraw_status"=> 3,
"trade_status"=> 3,
"withdraw_fee"=> 0.03,
"precision"=> 9,
),
);
the expected result is:
$newarr = array(
0=>array(
"asset_code"=> "CC",
"recharge_status"=> 1,
"withdraw_status"=> 1,
"trade_status"=> 1,
"withdraw_fee"=> 0.01,
"precision"=> 7,
),
1=>array(
"asset_code"=> "DD",
"recharge_status"=> 2,
"withdraw_status"=> 2,
"trade_status"=> 2,
"withdraw_fee"=> 0.02,
"precision"=> 8,
),
2=>array(
"asset_code"=> "EE",
"recharge_status"=> 3,
"withdraw_status"=> 3,
"trade_status"=> 3,
"withdraw_fee"=> 0.03,
"precision"=> 9,
),
);