Bir json yapısını verileri erişme

0 Cevap php

(Aşağıda pasajı) Facebook bir JSON yem yükleme duyuyorum.

{
   "data": [
      {
         "id": "115972604762",
         "from": {
            "name": "Title Here",
            "category": "Musicians",
            "id": "20274769762"
         },
         "name": "It was an amazing gig!!",
         "picture": "http://photos-h.ak.fbcdn.net/hphotos-ak-snc1/hs196.snc1/6616_115972604762_20274769762_2185148_6347071_s.jpg",
         "source": "http://sphotos.ak.fbcdn.net/hphotos-ak-snc1/hs196.snc1/6616_115972604762_20274769762_2185148_6347071_n.jpg",
         "height": 453,
         "width": 604,
         "images": [
            {

Ben kullanarak yüklemeden am $data['pics'] = json_decode(file_get_contents('https://graph.facebook.com/'. $id .'/photos'));

Nasıl 'Burada Başlık' değerini almak için gelen-> name değerini echo'ing hakkında gitmek istiyorsunuz?

0 Cevap