$meta = get_meta_tags('http://www.web8899.com/');
$keywords = $meta['keywords'];
// Split keywords
$keywords = explode(',', $keywords );
// Trim them
$keywords = array_map( 'trim', $keywords );
// Remove empty values
$keywords = array_filter( $keywords );
print_r( $keywords );
- 本文固定链接: http://www.web8899.com/2013/11/05/获取web页面中meta标签里的keyword/
- 转载请注明: dean 于 迈向卓越-个人博客 发表