PHP - RSS Duplicate items
<p>I have RSS like this:</p>

<pre><code>&lt;title&gt;Session 1&lt;/pubDate&gt;
&lt;category&gt;Blue&lt;/category&gt;
&lt;category&gt;Green&lt;/category&gt;
&lt;evnet:starttime&gt;Mon, 15 Mar 2010 12:05:00 GMT&lt;/evnet:starttime&gt;
&lt;evnet:endtime&gt;Mon, 15 Mar 2010 12:30:00 GMT&lt;/evnet:endtime&gt;
</code></pre>

<p>Im using <strong>Magpie RSS Parser</strong> to get the RSS feed:</p>

<pre><code>&lt;?php require_once('magpie/rss_fetch.inc');

$rss = fetch_rss('http://live.visitmix.com/Sessions/RSS');

foreach ($rss-&gt;items as $item) { 
    $cat = $item['category'];
    $title = $item['title'];
        echo '&lt;li class="'.$cat.'"&gt;'.$title.'&lt;/li&gt;';
}


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

<p>The result is:</p>

<pre><code>&lt;li class="BlueGreen"&gt;Title&lt;/li&gt;
</code></pre>

<p>I require:</p>

<pre><code>&lt;li class="Blue Green"&gt;Session 1&lt;/li&gt;
</code></pre>

<p><strong>Note space between classes</strong></p>

<p>How can I insert a space between the category values?</p>
