이 내가 공급 파인더 URL (JSON 인코딩)에서 문자열로 무엇을 얻을 : PHP에서이 JSON 문자열을 디코딩하는 방법은 무엇입니까?
{"updated":1265787927,"id":"http://www.google.com/reader/api/0/feed-finder?q\u003dhttp://itcapsule.blogspot.com/\u0026output\u003djson","title":"Feed results for \"http://itcapsule.blogspot.com/\"","self":[{"href":"http://www.google.com/reader/api/0/feed-finder?q\u003dhttp://itcapsule.blogspot.com/\u0026output\u003djson"}],"feed":[{"href":"http://itcapsule.blogspot.com/feeds/posts/default"}]}
어떻게 내가 json_decode를 사용하여 디코딩 할 수있다() 함수와 마지막 배열 요소 ("공급")를 얻을 ? 나는 json_decode()
는 이미 두 번째 매개 변수로 true
로 전화 배열을 반환
내가 오해하고 있지만 단지 $ ar [ 'feed']를 원한다면 사과드립니다. – jasonbar
PHP에서 타입 캐스팅이 필요 없습니다. –
@Jasonbar, 예. 맞습니다. 피드 값만 필요합니다. – Orion