php8.5
Home/ Manual/ reference / dom/ The DOMNamedNodeMap class

The DOMNamedNodeMap class

The number of nodes in the map. The range of valid child node indices is 0 to length - 1 inclusive.

Class synopsis

class DOMNamedNodeMap implements IteratorAggregate implements Countable { }

Properties

length

The number of nodes in the map. The range of valid child node indices is 0 to length - 1 inclusive.

Changelog

VersionDescription
8.0.0The unimplemented methods DOMNamedNodeMap::setNamedItem, DOMNamedNodeMap::removeNamedItem, DOMNamedNodeMap::setNamedItemNS and DOMNamedNodeMap::removeNamedItem have been removed.
8.0.0DOMNamedNodeMap implements IteratorAggregate now. Previously, Traversable was implemented instead.

Notes

Note

Nodes in the map can be accessed by array syntax.

Domnamednodemap

In this section

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