我有一个API,它以数组的形式返回响应。我想从这个数组中提取元素并将它们保存在我的数据库中。我曾尝试使用爆炸功能,但似乎我缺少一些东西。以下是来自检索的确切示例响应。如何将数组值复制到单个变量中
Array
(
[Response] => Array
(
[external_reference] => bablaba
[withdraw_request_id] => babalalal
[amount] => bababababa
[status] => ababababab
[message] => ababababa.
[new_balance] => babababa
[amount_sent] => ababababa
[currency_sent] => ababababa
[charge_amount] => ababababa
[charge_currency] => babababa
[currency] => abababaab
)
)
邮编你已经尝试 – Apb
$ new_variable = $阵列[ '响应'] [ '货币']; echo $ new_variable; – JYoThI