PHP Conference Fukuoka 2025

The Dom\NodeList class

(PHP 8 >= 8.4.0)

็ฎ€ไป‹

Represents a live list of nodes.

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

็ฑปๆ‘˜่ฆ

class Dom\NodeList implements IteratorAggregate, Countable {
/* ๅฑžๆ€ง */
public readonly int $length;
/* ๆ–นๆณ• */
/* Not documented yet */
}

ๅฑžๆ€ง

length

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

๏ผ‹ๆทปๅŠ ๅค‡ๆณจ

็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจ

ๆญค้กต้ขๅฐšๆ— ็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจใ€‚
To Top