I have an array which i getting from an api, but its format is not correct.
Response Array
Array
(
[route] => checkout/success
[utf8] => ✓
[req_bill_to_address_country] => AE
[auth_avs_code] => 1
)
I'm getting this array through $_Request
print_r($_Request);
I want to convert it in this format.
Array
(
'route' => 'checkout/success',
'utf8' => '✓',
'req_bill_to_address_country' => 'AE',
'auth_avs_code' => 1
)
So how can i do this, I have tried with explode()
function but its not converting properly.