For more information, see PHPcodefunctionCreateStatus ($ status) {$ root $ this-& gt; dom-& gt; createElement (root); $ this-& gt; dom-& gt; appendChild ($ root); create a small function that you don't understand
PHP code
Function CreateStatus ($ status) {$ root = $ this-> dom-> createElement ('root'); $ this-> dom-> appendChild ($ root ); // create the status tag $ statusInfo = $ this-> dom-> createElement ('statusinfo); $ root-> appendChild ($ statusInfo ); $ statusInfoValue = $ this-> dom-> createTextNode ($ status); $ statusInfo-> appendChild ($ statusInfoValue ); // output XML data return $ this-> dom-> saveXML ();}
I don't understand what it means ..
------ Solution --------------------
Are there any comments above? Create an xml file and add the status information to the xml file. If an error occurs in the xml file, false is returned.