read cdata from a rss feed
问题 I'm reading a rss feed using simple code: <?php $homepage = file_get_contents('http://www.forbes.com/news/index.xml'); $movies = new SimpleXMLElement($homepage); echo '<pre>'; print_r($movies); ?> and the output like this: SimpleXMLElement Object ( [@attributes] => Array ( [version] => 2.0 ) [channel] => SimpleXMLElement Object ( [title] => SimpleXMLElement Object ( ) [link] => SimpleXMLElement Object ( ) [description] => SimpleXMLElement Object ( ) [language] => en-us [copyright] =>