Quickly convert simpleXMLObject to STDClass?

Viewed 16165

Does anybody know a quick way to convert a SimpleXMLElement to a normal STDClass object, without iterating through each branch manually? I would feel better working with a normal object after fetching the data.

4 Answers
Related