DOMNodelist::item

DOMNodelist::item

(PHP 5, PHP 7)

DOMNodelist::item Retrieves a node specified by index

Description

DOMElement DOMNodelist::item ( int $index )

Retrieves a node specified by index within the DOMNodeList object.

Tip

If you need to know the number of nodes in the collection, use the length property of the DOMNodeList object.