php - Parsing numeric array held inside associative array -


i have been dealing such arrays before , never faced problem time not know why freaking me out. not able parse array below.

'medias' => array (     0 => ''     1 => array     (         'filename' => '1140_image.png'         'path' => 'path/of/file/here'         'width' => '1140'         'height' => '480'     )     2 => array     (         'filename' => '1140jpg.jpg'         'path' => 'path/of/file/here'         'width' => '1140'         'height' => '713'     ) ) 

in order parse it, doing

foreach($componentmodelmedias['medias'] $componentmodelmedia){     echo $componentmodelmedia['path']; } 

and not showing me data in return. not sure why happening , know not worth asking question here tell me if doing thing wrong.


Comments