Array from preg_match_all : The code what working:

$url  = 'http://www.google.com/search?hl=en&tbo=d&site=&source=hp&q=upoznavanje';
$html = file_get_html($url);
preg_match_all('/(?<="><cite>).*?(?=<\/cite><div\ class=)/', $html, $output);
    
    foreach ($output[0] as $link) { 
    
  $link ."<br>"  ;
    
    
}

But when i put  echo $output[0]  i get  0, or $output[1]  nothing

var_dump works and print_r  array is there, but how to take unique value of each - but not with foreach ?