PHP print_r shows array and not plain text only
<p>I am once again looking for some help.</p>

<p>I have found this stopwords script - I basically remove all common words from a string.</p>

<pre><code>&lt;?php
$CommonWords = file_get_contents('http://localhost/stopwords.txt');
$CommonWords = explode("\n", $CommonWords);
$CommonWords = array_map('trim', $CommonWords); // &lt;---- ADD THIS LINE
$keywords = 'The &lt;meta&gt; tag’s keyword attribute is not the page rank panacea it once was back in the prehistoric days of Internet search. It was abused far too much and lost most of its cachet. But there’s no need to ignore the tag. Take advantage of all legitimate opportunities to score keyword credit, even when the payoff is relatively low. Fill in this tag’s text with relevant keywords and phrases that describe that page’s content';
$search_keywords = strtolower(trim($keywords));$arrWords = explode(' ', $search_keywords);
$arrWords = array_unique($arrWords);
foreach ($arrWords as $word) {
 if (!in_array($word, $CommonWords) &amp;&amp; (trim($word) != '')) 
 {
 $searchWords[] = $word;
 } 
 }
 print_r($searchWords);
 ?&gt;
</code></pre>

<p>The output for the code looks like this: </p>

<pre><code>Array ( [0] =&gt; [1] =&gt; tag’s [2] =&gt; keyword [3] =&gt; attribute [4] =&gt; page [5] =&gt; rank [6] =&gt; panacea [7] =&gt; prehistoric [8] =&gt; days [9] =&gt;) 
</code></pre>

<p>How can I format it so that the output looks like this: (without the Array and numbers)</p>

<pre><code>tag's, attribute, page, rank, panacea, prehistoric, days
</code></pre>

<p>Thanks</p>
