DOMNodeList::count

(PHP 7 >= 7.2.0, PHP 8)

DOMNodeList::countGet number of nodes in the list

說(shuō)明

public DOMNodeList::count(): int

Gets the number of nodes in the list.

參數(shù)

此函數(shù)沒(méi)有參數(shù)。

返回值

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