Home >Backend Development >PHP Tutorial >帮忙看一个小函数 不懂,该怎么处理
帮忙看一个小函数 不懂
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> function CreateStatus($status) { $root = $this->dom->createElement('root'); $this->dom->appendChild($root); //创建status标签 $statusInfo = $this->dom->createElement('status'); $root->appendChild($statusInfo); $statusInfoValue = $this->dom->createTextNode($status); $statusInfo->appendChild($statusInfoValue); //输出XML数据 return $this->dom->saveXML(); }