php get_meta_tags 函数
get_meta_tags
( PHP 4中, PHP 5中)
get_meta_tags -提取所有中继标记内容属性从一个文件并返回一个数组
描述
阵列get_meta_tags (字符串$文件名[ ,布尔$ use_include_path =虚假] )
打开文件,并解析其一行行的
// Assuming the above tags are at www.example.com
$tags = get_meta_tags('http://www.example.com/');
// Notice how the keys are all lowercase now, and
// how . was replaced by _ in the key.
echo $tags['author']; // name
echo $tags['keywords']; // php documentation
echo $tags['description']; // a php manual
echo $tags['geo_position']; // 49.33;-86.59
?>