PHP Get Meta tags, URL's in Arrays = Not Working
<p>I am trying to get the meta tags of the urls entered in the text area, what is wrong with this?</p>

<p>Also, how would I put the URL that the meta description came from with the description?</p>

<pre><code>&lt;form method="get"&gt;
&lt;textarea name="TAData"&gt;
&lt;/textarea&gt;
&lt;input type="submit" value="submit"/&gt;
&lt;/form&gt;

&lt;div id="checkboxes"&gt;
&lt;input type="checkbox" name="vehicle" value="PR" /&gt; Show me the PR&lt;br /&gt;
&lt;input type="checkbox" name="vehicle" value="KW Tag" /&gt; Show me the KW tag&lt;br /&gt;
&lt;input type="checkbox" name="vehicle" value="Title Tag" /&gt; Show me the Title tag&lt;br /&gt;
&lt;/div&gt;
&lt;div id="checkboxes"&gt;
&lt;input type="checkbox" name="vehicle" value="1stH1" /&gt; Show me the 1st H1&lt;br /&gt;
&lt;input type="checkbox" name="vehicle" value="2ndH1" /&gt; Show me the 2nd H1 tag&lt;br /&gt;
&lt;input type="checkbox" name="vehicle" value="SeedKW" /&gt; Show me Seed KW's&lt;br /&gt;
&lt;/div&gt;

&lt;div id="nofloat"&gt;&lt;/div&gt;

&lt;?php

//make the array 
$TAarray = explode("\n", strip_tags($_POST['TAData'])); 

var_dump($TAarray);

//loop through the array 
foreach ($TAarray as $line) { 


   $line = htmlspecialchars(trim($line)); 
}      

    foreach ($TAarray as $url) {

            // get the meta data for each url
            $tags = get_meta_tags($url);

unset($tags["content-type"]);
unset($tags["page-type"]);
unset($tags["page-topic"]);
unset($tags["audience"]);

                echo '&lt;tr&gt;';
                foreach ($tags['description'] as $meta)         
            {
                        echo '&lt;td&gt;' . $meta . '&lt;/td&gt;';
                }
                echo '&lt;/tr&gt;';
        }
?&gt;
</code></pre>

<p>Also, is there a way to only include the meta description?</p>
