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
?>