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

DOMNodeList::count

(PHP 7 >= 7.2.0, PHP 8)

DOMNodeList::count — Get number of nodes in the list

Description

public function DOMNodeList::count(): int

Gets the number of nodes in the list.

Parameters

This function has no parameters.

Return Values

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


<DOMNodeListDOMNodeList::getIterator>
^DOMNodeListLast updated: Mon, 26 Oct 2026