Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从中news_keywords得到meta:
news_keywords
meta
<meta name="news_keywords" content="bla, bla, bla tag"> <meta property="og:title" content="title example">
我尝试使用简单的代码但不起作用
$tags = get_meta_tags($link); echo $tags['news_keywords'];
这是一个小错误。将其更改为:
echo $tags['news_keywords'];
输出:
bla, bla, bla tag
您正在回显错误的标签,请尝试不回$tags['news_keywords']显$tag['news_keywords']
$tags['news_keywords']
$tag['news_keywords']