protected static function DOMNodeAttributes(DOMNode $node)
    {
        $attributes = array();

        foreach ($node->attributes as $attribute) {
            $attributes[$attribute->name] = $attribute->value;
        }

        return $attributes;
    }
protected static function DOMNodeAttributes(DOMNode $node)
    {
        $attributes = array();

        foreach ($node->attributes as $attribute) {
            $attributes[$attribute->name] = $attribute->value;
        }

        return $attributes;
    }
protected static function DOMNodeAttributes ( DOMNode $ node ) { $ attributes = array ( ) ; foreach ( $ node -> attributes as $ attribute ) { $ attributes [ $ attribute -> name ] = $ attribute -> value ; } return $ attributes ; }
Get the DONNode attributes

@static
@param   DOMNode $node
@return  array
Get the DONNode attributes