src/XML.php
public static function DOMNodeListToArray(DOMNodeList $nodeList, $associative = false, $attributes = false)
    {
        $nodes = array();

        foreach ($nodeList as $node) {
            $nodes[] = static::DOMNodeValue($node, $associative, $attributes);
        }

        return $nodes;
    }
public static function DOMNodeListToArray(DOMNodeList $nodeList, $associative = false, $attributes = false)
    {
        $nodes = array();

        foreach ($nodeList as $node) {
            $nodes[] = static::DOMNodeValue($node, $associative, $attributes);
        }

        return $nodes;
    }
public static function DOMNodeListToArray ( DOMNodeList $ nodeList , $ associative = false , $ attributes = false ) { $ nodes = array ( ) ; foreach ( $ nodeList as $ node ) { $ nodes [ ] = static :: DOMNodeValue ( $ node , $ associative , $ attributes ) ; } return $ nodes ; }
Convert a DOMNodeList into an Array

@static
@param   DOMNodeList $nodeList
@param   bool        $associative Return associative array?
@param   bool        $attributes  Include node attributes?
@return  array
Convert a DOMNodeList into an Array