buildakicker Posted June 15, 2011 Share Posted June 15, 2011 foreach($indexXML->document->document as $doc) { if(strcmp($doc->DocumentKey[0]->tagData, $docType) == 0) { $viewMapping = $doc; $viewXMLFile = $doc->ViewXML[0]->tagData; break; } Link to comment https://forums.phpfreaks.com/topic/239449-can-anyone-tell-me-what-this-is-doing/ Share on other sites More sharing options...
redixx Posted June 15, 2011 Share Posted June 15, 2011 It appears to be looping through XML data. Link to comment https://forums.phpfreaks.com/topic/239449-can-anyone-tell-me-what-this-is-doing/#findComment-1230102 Share on other sites More sharing options...
buildakicker Posted June 15, 2011 Author Share Posted June 15, 2011 Hi, sorry, yes it is looping through data. The one part I don't get is the: foreach($indexXML->document->document as $doc) { if(strcmp($doc->documentkey[0]->tagData, $docType) == 0) { $viewMapping = $doc; $viewXMLFile = $doc->viewxml[0]->tagData; break; } } Link to comment https://forums.phpfreaks.com/topic/239449-can-anyone-tell-me-what-this-is-doing/#findComment-1230108 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.