DOMNodeList
PHP Manual

DOMNodeList::count

(No version information available, might only be in Git)

DOMNodeList::countGet number of nodes in the list

说明

public int DOMNodeList::count ( void )

参数

此函数没有参数。

返回值

Returns number of nodes in the list 或者在失败时返回 FALSE.

更新日志

版本 说明
7.2.0 The Countable interface is implemented and returns the value of the length property.


DOMNodeList
PHP Manual