M
M
Mikhail Belyakov2018-01-30 19:35:36
PHP
Mikhail Belyakov, 2018-01-30 19:35:36

How to take a value with a foreach loop in a multidimensional array if one of the arrays is not associative?

In general, getting data from the instagram api, I recoded Json into a multidimensional array, but one of the arrays is not associative. We need to get all images [standart_resolution]->[url] . But due to the fact that the initial array is numbered , I can not write foreach . Tell me friends, I just started learning php, and I put it very clumsily, but I think the essence is clear, thanks in advance
misha.true-false.ru/index.php?route=inst/inst link to the entire array
https://imgur.com/ gallery/6RWoP — array with which problems

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Korobkov, 2018-01-30
@BorisKorobkov

due to the fact that the initial array is numbered, I can’t write foreach

What?!

M
Mikhail Belyakov, 2018-01-31
@Mikhail3533

5a7161f19697d722840679.png5a7161f82a37f523227815.png
It doesn’t work, I can’t go further than a numbered array, only if I pull out one value

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question