This is a PHP function to get the title of the page
function getTitle($content)
{
$url_pattern="/<title>(.*?)<\/title>/ims";
preg_match($url_pattern,$content,$matches);
return strip_tags($matches[1]);
}
Comments
Post a Comment