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
 
<Dom\TokenList::containsDom\TokenList::getIterator>
^Dom\TokenListLast updated: Mon, 26 Oct 2026

Dom\TokenList::count

(PHP 8 >= 8.4.0)

Dom\TokenList::count — Returns the number of tokens in the list

Description

public function Dom\TokenList::count(): int

Returns the number of tokens in the list.

Parameters

This function has no parameters.

Return Values

The number of tokens in the list.


<Dom\TokenList::containsDom\TokenList::getIterator>
^Dom\TokenListLast updated: Mon, 26 Oct 2026