DOMNodeList::count

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

DOMNodeList::countGet number of nodes in the list

Description

public int DOMNodeList::count ( void )

Parameters

This function has no parameters.

Return Values

Returns number of nodes in the list or FALSE on failure.

Changelog

Version Description
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
5 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