I would like to extract all the [Foto]
indices from this array but I still do not understand correctly how to do this because I am still struggling with array multidimensionais
learning. What I was able to do was extract 1 photo like this:
echo $fotos = $result['Foto'][1]['Foto'];
Question: As within for
can I extract all indexes [Foto]
?
The array is this:
Array
(
[Codigo] => 67
[Foto_Codigo] => 7
[Foto] => Array
(
[1] => Array
(
[Codigo] => 1
[Foto] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_6756311964c945c.jpg
[FotoPequena] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_6756311964c945c_p.jpg
[Destaque] => Sim
)
[2] => Array
(
[Codigo] => 2
[Foto] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_6756311963961c5.jpg
[FotoPequena] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_6756311963961c5_p.jpg
[Destaque] => Nao
)
[3] => Array
(
[Codigo] => 3
[Foto] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_6756311964e6f0b.jpg
[FotoPequena] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_6756311964e6f0b_p.jpg
[Destaque] => Nao
)
[4] => Array
(
[Codigo] => 4
[Foto] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_6756311965dd324.jpg
[FotoPequena] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_6756311965dd324_p.jpg
[Destaque] => Nao
)
[5] => Array
(
[Codigo] => 5
[Foto] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_6756311965cc92b.jpg
[FotoPequena] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_6756311965cc92b_p.jpg
[Destaque] => Nao
)
[6] => Array
(
[Codigo] => 6
[Foto] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_67563119654e991.jpg
[FotoPequena] => http://static.vista.s3.amazonaws.com/danielbo/vista.imobi/fotos/67/ik5u4v_67563119654e991_p.jpg
[Destaque] => Nao
)