DOMNodeList
class DOMNodeList implements IteratorAggregate, Countable (View source)
The DOMNodeList class
Properties
| int | $length |
Methods
TNode|null
item(int $index)
Retrieves a node specified by index
int
count()
Get number of nodes in the list
getIterator()
Retrieve an external iterator
Details
TNode|null
item(int $index)
Retrieves a node specified by index
int
count()
Since: 7.2
Get number of nodes in the list
Gets the number of nodes in the list.
Traversable
getIterator()
Since: 8.0
Retrieve an external iterator
Returns an external iterator for the node list.