Duplicating Meta Description when using get_meta_tags function, only want the description
<p>When echo'ed out instead of just removing all of the other meta tags it seems to be duplicating the description, for example:</p>

<p>BBC has 13 different meta tags, when I echo out just the description in my script it is duplicating it 13 times.</p>

<pre><code>&lt;?php
//make the array 
$TAarray = explode("\n", strip_tags($_POST['TAData'])); 

foreach ($TAarray as $key =&gt; &amp;$line) {
            $line = trim($line); 
            // get the meta data for each url
            $tags = get_meta_tags($line);

            echo '&lt;tr&gt;';
            foreach ($tags as $meta)        
            {
            echo (isset($tags['description']))?"&lt;br&gt;&lt;br       /&gt;\nDescription($line):&lt;br&gt;\n".$tags['description']:"&lt;br&gt;\nDescription($line):&lt;br&gt;\nNo Meta    Description.";
                    /*echo '&lt;td&gt;' . $meta . '&lt;/td&gt;';*/
            }
            echo '&lt;/tr&gt;';
    }

    ?&gt;
</code></pre>

<p>Here is the URL incase anyone wanted to see it working: <a href="http://php-playground.co.cc/testdir/metaex.php" rel="nofollow">http://php-playground.co.cc/testdir/metaex.php</a></p>

<p>PS</p>

<p>I know the checkboxes are not working they are only there for the layout</p>
