ricklee Posted April 20, 2007 Share Posted April 20, 2007 Hi Everyone, I was wondering if someone might be able to help me with this. I'm having trouble getting to the string in this object: object(SimpleXMLElement)#2 (1) { [0]=> string(4880) "fasdfa...etc." } $goody->0 doesn't work $goody->attributes() doesn't work either Here's the code that produced the dump: $filename = 'test_feeds/feed.xml'; $feed = simplexml_load_file($filename); $description = $feed->channel->item->description; $goody = simplexml_load_string($description, 'SimpleXMLElement', LIBXML_NOCDATA); print var_dump($goody); Quote Link to comment Share on other sites More sharing options...
c4onastick Posted April 20, 2007 Share Posted April 20, 2007 This isn't a regex problem. Try posting the the PHP help board. Quote Link to comment Share on other sites More sharing options...
ricklee Posted April 20, 2007 Author Share Posted April 20, 2007 This isn't a regex problem. Try posting the the PHP help board. Sorry, I accidentally posted to the wrong section! I've reposted it on the help board. Thanks for pointing this out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.