Codice PHP:
.
.
$ext=array();
foreach(
$url as $id=>$u)
   if(!
in_array($u$ext))
      
$ext[]=&$url[$id];
.