示例#1
0
function xmlconvert($source)
{
    $xml = new Xml2Array();
    $xml->setXml($source);
    $array = $xml->get_array();
    return $array;
}
 public function parse($rawBody, $contentType)
 {
     $content = Xml2Array::go($rawBody);
     return array_shift($content);
 }