获取中的content标签内容

php函数:
$tags = get_meta_tags ( 'http://shop.icbuy.com/' );

echo $tags [ 'author' ]; // name
echo $tags [ 'keywords' ]; // php documentation
echo $tags [ 'description' ]; // a php manual
echo $tags [ 'geo_position' ];
正则表达式:

$content = '';
$pattern = '/]*)content="([^"\'>]*)"([^>]*)/i';
preg_match($pattern,$content,$out);
print_r($out);

你可能感兴趣的:(php)