示例#1
0
 public static function xml2array($xmlObject, $out = array())
 {
     foreach ((array) $xmlObject as $index => $node) {
         $index = XMLHelper::dashesToCamelCase($index);
         $out[$index] = is_object($node) || is_array($node) ? XMLHelper::xml2array($node) : trim($node);
     }
     return $out;
 }