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
 
<DOMNamedNodeMapDOMNamedNodeMap::getIterator>
^DOMNamedNodeMapLast updated: Mon, 26 Oct 2026

DOMNamedNodeMap::count

(PHP 7 >= 7.2.0, PHP 8)

DOMNamedNodeMap::count — Get number of nodes in the map

Description

public function DOMNamedNodeMap::count(): int

Gets the number of nodes in the map.

Parameters

This function has no parameters.

Return Values

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


<DOMNamedNodeMapDOMNamedNodeMap::getIterator>
^DOMNamedNodeMapLast updated: Mon, 26 Oct 2026