現在、Web ページからキーワードを抽出するために使用get_meta_tags
していますが、表示されるときに自分の Web サイトにリンクされている各キーワードが必要です。
これが私のコードです:
<?php echo $tags['description']; ?><br /><br />
<?php echo $tags['keywords']; ?>
これは、キーワードについて HostGator.com から取得したテキストです。
web hosting, hosting, webhosting
次のように、自分のウェブサイトにリンクされた各キーワードが必要です。
<a href="http://www.mysite.com/keywords/web-hosting">web hosting</a>,
<a href="http://www.mysite.com/keywords/hosting">hosting</a>,
<a href="http://www.mysite.com/keywords/webhosting">webhosting</a>
私が試したものはこれでうまくいかないようですので、皆さんが助けてくれることを願っていました.