selenin Posted February 16, 2011 Share Posted February 16, 2011 Hi I made a curl and don't know what to do with the string I got back, I would need the id and the name of each, should I explode, don't know how to do that, here is what I got as answer: string(596) "{"data":[{"name":"Esoterik Forum","category":"Community","id":"180883525283576"},{"name":"Hellsehen und Wahrsagen","category":"Company","id":"177967172214131"},{"name":"Spirituelle Lebensberatung","category":"Website","id":"164411270264299"},{"name":"Esoterik","category":"Website","id":"164524456919432"},{"name":"Kartenlegen und Hellsehen","category":"Company","id":"173933135951523"},{"name":"Exchange","category":"Application","id":"190533567633445"},{"name":"Astrologie","category":"Website","id":"164928140213920"},{"name":"Esoterik Forum","category":"Application","id":"184577371575355"}]}" Quote Link to comment https://forums.phpfreaks.com/topic/227932-curl-answer-problem/ Share on other sites More sharing options...
xylex Posted February 16, 2011 Share Posted February 16, 2011 Hit it with this - http://php.net/manual/en/function.json-decode.php Quote Link to comment https://forums.phpfreaks.com/topic/227932-curl-answer-problem/#findComment-1175363 Share on other sites More sharing options...
selenin Posted February 17, 2011 Author Share Posted February 17, 2011 Thanks a lot xylex, that made it Quote Link to comment https://forums.phpfreaks.com/topic/227932-curl-answer-problem/#findComment-1175379 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.