Здравствуйте имеется массив $item, при распечатке массива там есть такие данные
[pictures] => Array
(
[0] => Array
(
[url] => http://img02.taobaocdn.com/bao/uploaded/i2/TB1qn8UHpXXXXcmXXXXXXXXXXXX_!!0-item_pic.jpg
[ismain] => true
[small] => http://img02.taobaocdn.com/bao/uploaded/i2/TB1qn8UHpXXXXcmXXXXXXXXXXXX_!!0-item_pic.jpg_100x100.jpg
[medium] => http://img02.taobaocdn.com/bao/uploaded/i2/TB1qn8UHpXXXXcmXXXXXXXXXXXX_!!0-item_pic.jpg_310x310.jpg
[large] => http://img02.taobaocdn.com/bao/uploaded/i2/TB1qn8UHpXXXXcmXXXXXXXXXXXX_!!0-item_pic.jpg_600x600.jpg
)
[1] => Array
(
[url] => http://img02.taobaocdn.com/bao/uploaded/i2/TB1WyHEGVXXXXbvXFXXXXXXXXXX_!!0-item_pic.jpg
[ismain] => false
[small] => http://img02.taobaocdn.com/bao/uploaded/i2/TB1WyHEGVXXXXbvXFXXXXXXXXXX_!!0-item_pic.jpg_100x100.jpg
[medium] => http://img02.taobaocdn.com/bao/uploaded/i2/TB1WyHEGVXXXXbvXFXXXXXXXXXX_!!0-item_pic.jpg_310x310.jpg
[large] => http://img02.taobaocdn.com/bao/uploaded/i2/TB1WyHEGVXXXXbvXFXXXXXXXXXX_!!0-item_pic.jpg_600x600.jpg
)
[2] => Array
(
[url] => http://img04.taobaocdn.com/bao/uploaded/i4/1852243062/TB2pPS1bFXXXXcuXXXXXXXXXXXX_!!1852243062.jpg
[ismain] => false
[small] => http://img04.taobaocdn.com/bao/uploaded/i4/1852243062/TB2pPS1bFXXXXcuXXXXXXXXXXXX_!!1852243062.jpg_100x100.jpg
[medium] => http://img04.taobaocdn.com/bao/uploaded/i4/1852243062/TB2pPS1bFXXXXcuXXXXXXXXXXXX_!!1852243062.jpg_310x310.jpg
[large] => http://img04.taobaocdn.com/bao/uploaded/i4/1852243062/TB2pPS1bFXXXXcuXXXXXXXXXXXX_!!1852243062.jpg_600x600.jpg
)
[3] => Array
(
[url] => http://img03.taobaocdn.com/bao/uploaded/i3/1852243062/TB2fWFZbpXXXXa_XXXXXXXXXXXX_!!1852243062.jpg
[ismain] => false
[small] => http://img03.taobaocdn.com/bao/uploaded/i3/1852243062/TB2fWFZbpXXXXa_XXXXXXXXXXXX_!!1852243062.jpg_100x100.jpg
[medium] => http://img03.taobaocdn.com/bao/uploaded/i3/1852243062/TB2fWFZbpXXXXa_XXXXXXXXXXXX_!!1852243062.jpg_310x310.jpg
[large] => http://img03.taobaocdn.com/bao/uploaded/i3/1852243062/TB2fWFZbpXXXXa_XXXXXXXXXXXX_!!1852243062.jpg_600x600.jpg
)
[4] => Array
(
[url] => http://img01.taobaocdn.com/bao/uploaded/i1/1852243062/TB2fADTbVXXXXbZXXXXXXXXXXXX_!!1852243062.jpg
[ismain] => false
[small] => http://img01.taobaocdn.com/bao/uploaded/i1/1852243062/TB2fADTbVXXXXbZXXXXXXXXXXXX_!!1852243062.jpg_100x100.jpg
[medium] => http://img01.taobaocdn.com/bao/uploaded/i1/1852243062/TB2fADTbVXXXXbZXXXXXXXXXXXX_!!1852243062.jpg_310x310.jpg
[large] => http://img01.taobaocdn.com/bao/uploaded/i1/1852243062/TB2fADTbVXXXXbZXXXXXXXXXXXX_!!1852243062.jpg_600x600.jpg
)
)
Так вот, как мне перебрать данные используя foreach, что бы выводить картинку [small].
Я могу лишь так выводить, к примеру первую картинку
<?=$item['pictures'][0] ['small']?>
Но так вручную выводить каждую картинку это просто жесть, так как количество картинок для разных товаров может быть разное. Так как мне быть?