$xml = "<?xml version=\"1.0\" encoding=\"gb2312\"?>\r\n<root>\r\n";
$xml .="<result>000</result>\r\n";
$xml .= "<error>003</error>\r\n";
$xml .= "<errormsg>不合法</errormsg>\r\n";
$xml .="</root>\r\n";
转载于:https://www.cnblogs.com/jiaxu/p/4364755.html