PHP has built in function get_meta_tags() which extracts all meta tags of a webpage and returns an array.It takes a minimum of one parameter (the path of the webpage). which can be local or an external webpage from other site.
Meta tags provide the most basic elements used in search engine optimization and are used by all major search engines.
It parses the webpage line by line for meta and stops when it gets tag.
Its only extracts those meta which has name attribute set.
$metas = get_meta_tags(‘http://phpflow.com’);
echo “
"; print_r($metas); echo "
“;