Link to home
Start Free TrialLog in
Avatar of Heather Ritchey
Heather RitcheyFlag for United States of America

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.
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Heather Ritchey

ASKER

Perfect, thank you! That must be what was throwing me off when I tried searching documentation - the json. In my mind I guess I was thinking that belonged in jQuery code.
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