$array = json_decode($json, true); $feed = $array['feed'];
Note that json_decode() already returns an array when you call it with true as the second parameter.
Update:
How to feed value in JSON
"feed":[{"href":"http://itcapsule.blogspot.com/feeds/posts/default"}]
- an array of objects, the contents of $array['feed'] :
Array ( [0] => Array ( [href] => http:
To get the url you need to access the array using $array['feed'][0]['href'] or $feed[0]['href'] .
But this is the main processing of arrays. Array documentation might help you.
Felix kling
source share