RSS XML PHP why wouldn't this work?

I’m trying to use an API that gives me an RSS feed in XML_Unserializer data structure (whatever that means). The XML is stored in $event, and I have this code as the foreach()


foreach($event->item as $items){
        echo $items->title;
   }

Where:

<rss version=“2.0”>
<channel>
<item>
<title>Rolling Stones</title>
</item>
</channel> </rss>

It keeps giving me an invalid argument error for the foreach().

Why would this be happening? It’s worked when I’ve done it in other applications.