yourarray->results[0]->media[0]
$output = curl_exec($ch);
$a = json_decode($output,true);
foreach ($a as $array) {
foreach ($array[0] as $key=>$value) {
if ( is_array($value) ) {
foreach ($value[0] as $k=>$v) {
echo " <b>".$k."</b>".": ".$v;
}
} else {
echo " <b>".$key."</b>".": ".$value;
}
}
}