'Serialization of 'SimpleXMLElement' is not allowed Error insert in session xml value [duplicate]
问题 This question already has answers here : Forcing a SimpleXML Object to a string, regardless of context (10 answers) Closed 6 years ago . Hi all I have a site developed in codeigniter. I'm parsing an xml that I retrieve from a server and I want to put the return value into a session variable. But return me this error: Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed My PHP version on my vps is: PHP Version 5.3.10-1ubuntu3.4 This is my