W3cubDocs

/PHP

The Dom\NodeList class

Introduction

(PHP 8 >= 8.4.0)

Represents a live list of nodes.

This is the modern, spec-compliant equivalent of DOMNodeList.

Class synopsis

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

Properties

length

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

© 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-nodelist.php