If I have an array like this:
Array
(
[0] => Array
(
[image_path] => 3blocks-02.png
)
[1] => Array
(
[image_path] => 2blocks-02.png
)
)
Is there a way I can retrieve the ['image_path'] value by the array index in a forreach loop?
I have tried:
foreach($images as $image)
{
$image[1]
}
and
foreach($images as $image)
{
$image[1]['image_path']
}
and a key => value loop but I cant seem to get the data