SchweppesAle Posted January 12, 2010 Share Posted January 12, 2010 These are different right? I understand that you would use simplexml_load_string for xml files, would that work on an stdclass object though? Quote Link to comment https://forums.phpfreaks.com/topic/188216-difference-between-stdclass-object-and-xml/ Share on other sites More sharing options...
salathe Posted January 12, 2010 Share Posted January 12, 2010 In short, no. SimpleXML is for loading and manipulating XML files and stdClass objects are the 'default' PHP object which do not need to be "loaded" by any functions, they're entirely unrelated to XML and SimpleXML. Quote Link to comment https://forums.phpfreaks.com/topic/188216-difference-between-stdclass-object-and-xml/#findComment-993670 Share on other sites More sharing options...
SchweppesAle Posted January 12, 2010 Author Share Posted January 12, 2010 In short, no. SimpleXML is for loading and manipulating XML files and stdClass objects are the 'default' PHP object which do not need to be "loaded" by any functions, they're entirely unrelated to XML and SimpleXML. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/188216-difference-between-stdclass-object-and-xml/#findComment-993677 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.