Heather Ritchey
asked on
Format results with PHP
I've not worked with $response->getBody() before. This is what it looks like when I echo it to the screen: http://plugin-central.org/apitest/api_sample.php?
Is there a simpler method to format that into something more readable and easily worked with to display the results nicely rather than using explode multiple times? With explode, I know I'd still have to also use a str_replace to get rid of all the brackets and quote marks.
Thanks for any suggestions.
Is there a simpler method to format that into something more readable and easily worked with to display the results nicely rather than using explode multiple times? With explode, I know I'd still have to also use a str_replace to get rid of all the brackets and quote marks.
Thanks for any suggestions.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry, I did not see this question because it was open for such a short period of time, but going forward, this article might be helpful.
https://www.experts-exchange.com/articles/22519/Understanding-JSON-in-PHP-and-JavaScript-Applications.html
Best of luck with your project, ~Ray
https://www.experts-exchange.com/articles/22519/Understanding-JSON-in-PHP-and-JavaScript-Applications.html
Best of luck with your project, ~Ray
ASKER