php8.5
Home/ Manual/ dom / domnamednodemap/ DOMNamedNodeMap::count

DOMNamedNodeMap::count

PHP function Edit on GitHub ✎

(PHP 7 >= 7.2.0, PHP 8)

Get number of nodes in the map

Description

DOMNamedNodeMap::count(): int

Gets the number of nodes in the map.

Parameters Parameters

Return Values

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

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