Есть массив
{
"response": {
"count": 1,
"items": [{
"id": 19,
"from_id": -184363978,
"owner_id": -184363978,
"date": 1562875466,
"marked_as_ads": 0,
"post_type": "post",
"text": "Том был настолько неудачник, что мне его жалко",
"can_edit": 1,
"created_by": 465697626,
"can_delete": 1,
"can_pin": 1,
"attachments": [{
"type": "photo",
"photo": {
"id": 457239035,
"album_id": -7,
"owner_id": -184363978,
"user_id": 100,
"sizes": [{
"type": "m",
"url": "https://pp.userap...277/wogvSIOYkhQ.jpg",
"width": 130,
"height": 64
}, {
"type": "o",
"url": "https://pp.userap...27a/6rXOiYLtA2k.jpg",
"width": 130,
"height": 87
}, {
"type": "p",
"url": "https://pp.userap...27b/e85JMqc_vfw.jpg",
"width": 200,
"height": 133
}, {
"type": "q",
"url": "https://pp.userap...27c/qIpYlnscrxA.jpg",
"width": 320,
"height": 213
}, {
"type": "r",
"url": "https://pp.userap...27d/OkeveKeEVAg.jpg",
"width": 510,
"height": 321
}, {
"type": "s",
"url": "https://pp.userap...276/9EKfgJXoZGo.jpg",
"width": 75,
"height": 37
}, {
"type": "x",
"url": "https://pp.userap...278/FbddjVURAu0.jpg",
"width": 604,
"height": 298
}, {
"type": "y",
"url": "https://pp.userap...279/NFpUpg9q190.jpg",
"width": 651,
"height": 321
}],
"text": "",
"date": 1562875466,
"post_id": 19,
"access_key": "8a745e019ad12bfe09"
}
}],
"post_source": {
"type": "vk"
},
"comments": {
"count": 0,
"can_post": 1,
"groups_can_post": true,
"can_close": 1
},
"likes": {
"count": 0,
"user_likes": 0,
"can_like": 1,
"can_publish": 1
},
"reposts": {
"count": 0,
"user_reposted": 0
},
"views": {
"count": 1
},
"is_favorite": false,
"edited": 1562876829
}]
}
}
как получить фото?
пробовал
$query_get_wall = file_get_contents('запрос_К_ВК_апи');
$get_wall = json_decode($query_get_wall, true);
foreach ($get_wall['response']['items'] as $wall)
{
echo $wall['attachments']['photo']['photo_130'];
}