get_meta_tags() function return all meta tags of web page.
For example:
$url = "http://www.example.com";
$tags = get_meta_tags($url);
$description = $tags["description"];
$keywords = $tags["keywords"];
echo 'Keywords: '.$keywords;
echo '<br/>';
echo 'Description: '.$description;
For example:
$url = "http://www.example.com";
$tags = get_meta_tags($url);
$description = $tags["description"];
$keywords = $tags["keywords"];
echo 'Keywords: '.$keywords;
echo '<br/>';
echo 'Description: '.$description;
No comments:
Post a Comment