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? 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. 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 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
Archived
This topic is now archived and is closed to further replies.