original_string: static public function xmlToArray($xml)
      {
          //禁止引用外部xml实体
          libxml_disable_entity_loader(true);
          $values = json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
          return $values;
      }
code: static public function xmlToArray($xml)
      {
          //禁止引用外部xml实体
          libxml_disable_entity_loader(true);
          $values = json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
          return $values;
      }
code_tokens: static public function xmlToArray ( $ xml ) { //禁止引用外部xml实体 libxml_disable_entity_loader ( true ) ; $ values = json_decode ( json_encode ( simplexml_load_string ( $ xml , 'SimpleXMLElement' , LIBXML_NOCDATA ) ) , true ) ; return $ values ; }
docstring: xml to array
  @param $xml
  @return mixed
docstring_tokens: xml to array