Anyone know how you grab data from a HTML meta tag with PHP?
I want it to render the meta title and not the file title. Look at the orange text.
Anyone know how you grab data from a HTML meta tag with PHP?
I want it to render the meta title and not the file title. Look at the orange text.
$tags = get_meta_tags('http://www.example.com/');
echo $tags['author']; // name
echo $tags['keywords']; // php documentation
echo $tags['description']; // a php manual
echo $tags['geo_position']; // 49.33;-86.59
this will only return meta tags that have named values though
http://php.net/manual/en/function.get-meta-tags.php
go here for examples of usage