The get() method retrieves the node at the specified index within the NodeList.
Description
public NodeList::get(int $index): ?NodeInterface
Parameters
index
The zero-based position of the node to retrieve from the NodeList.
Return Value
Returns the NodeInterface object at the specified index if it exists; otherwise, null.
Exceptions
None