php8.5
Home/ Manual/ dom / dom/ The Dom\NamedNodeMap class

The Dom\NamedNodeMap class

Represents the set of attributes on an element. This is the modern, spec-compliant equivalent of DOMNamedNodeMap.

Intro

Represents the set of attributes on an element. This is the modern, spec-compliant equivalent of DOMNamedNodeMap.

Class synopsis

class Dom\NamedNodeMap implements IteratorAggregate implements Countable { }

Properties

length

The number of attributes.

Changelog

VersionDescription
8.5.0Cloning a Dom\NamedNodeMap object now fails.

Notes Utf8

Source: reference/dom/dom/dom-namednodemap.xml · from the official PHP manual (php/doc-en)