I\'m fetching some JSON from flickrs API. My problem is that the exif data is in different order depending on the camera. So I can\'t hard-code an array number to get, for i
foreach($exif['photo']['exif'] as $row) { foreach ($row as $k => $v) { if ($k == "label" AND $v == "Model") $needle[] = $row["raw"]; } } print_r($needle);