示例#1
0
文件: xml.php 项目: enormego/EightPHP
 /**
  * Converts an XML String to an associative array
  * @uses XMLParser_Core
  *
  * @param	string	XML String
  * @return	array
  */
 public static function xml2assoc($data)
 {
     $xml = new XMLParser($data);
     return $xml->to_array();
 }