Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Dom\NodeDom\Notation>
^DOMLast updated: Mon, 26 Oct 2026

The Dom\NodeList class

(PHP 8 >= 8.4.0)

Introduction

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.

Changelog

Version Description
8.5.0 Cloning a Dom\NodeList object now fails.

<Dom\NodeDom\Notation>
^DOMLast updated: Mon, 26 Oct 2026