Andreycon Posted August 3, 2020 Share Posted August 3, 2020 I got a response from an api in json. How do i echo out the account_name in string. Thanks as usual. The response is below... { "status": true, "message": "Account number resolved", "data": { "account_number": "2067483918", "account_name": "BABALOLA MAYOWA ABEL", "bank_id": 18 } } "status": true, "message": "Account number resolved", "data": { "account_number": "2067483918", "account_name": "BABALOLA MAYOWA ABEL", "bank_id": 18 } } Quote Link to comment https://forums.phpfreaks.com/topic/311272-how-do-i-convert-json-response-to-string/ Share on other sites More sharing options...
Andreycon Posted August 3, 2020 Author Share Posted August 3, 2020 Thanks. I have been able to sirt it out Quote Link to comment https://forums.phpfreaks.com/topic/311272-how-do-i-convert-json-response-to-string/#findComment-1580311 Share on other sites More sharing options...
requinix Posted August 3, 2020 Share Posted August 3, 2020 Next time, please let people know you figured out that json_decode was the answer. 1 Quote Link to comment https://forums.phpfreaks.com/topic/311272-how-do-i-convert-json-response-to-string/#findComment-1580336 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.