I assume you mean multiple URLs, then something like this will work. :
<html>
<?php
function getTitle($url){
@$str = file_get_contents($url); // suppressing the warning
if(strlen($str)>0){
preg_match("/\<title\>(.*)\<\/title\>/",$str,$title);
return $title[1];
} else {
return false;
}
}
$urls = array('http://bit.ly/18EFx87', 'url2');
foreach($urls as $url)
{
$title = getTitle($url);
if($title === false)
{
continue;
}
echo '<a href="' . $url . '"><b>';
echo $title;
echo '</b></a><br><i>';
$tags = get_meta_tags($url);
echo $tags['description'] . '</i>';
}
?>
</html>