W3cubDocs

/PHP

The Dom\NamedNodeMap class

Introduction

(PHP 8 >= 8.4.0)

Represents the set of attributes on an element.

Class synopsis

class Dom\NamedNodeMap implements IteratorAggregate, Countable {
/* Properties */
public readonly int $length;
/* Methods */
/* Not documented yet */
}

Properties

length
The number of attributes.

Notes

Note: The DOM extension uses UTF-8 encoding when working with methods or properties. The parser methods auto-detect the encoding or allow the caller to specify an encoding.

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.dom-namednodemap.php