PHP 7.1.21 Released

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.

add a note add a note

User Contributed Notes 1 note

up
3
plimpton47 at example dot com
3 months ago
Be careful with using this function as it's not available for anything before PHP 7.2, use the length property instead
To Top