php8.5
Home/ Manual/ dom / domnodelist/ DOMNodeList::count

DOMNodeList::count

PHP function Edit on GitHub ✎

(PHP 7 >= 7.2.0, PHP 8)

Get number of nodes in the list

Description

DOMNodeList::count(): int

Gets the number of nodes in the list.

Parameters Parameters

Return Values

Returns the number of nodes in the list, which is identical to the length property.

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