The first()
method retrieves the first node in the NodeList
.
Description
public NodeList::first(): ?NodeInterface
Parameters
None
Return Value
Returns the first NodeInterface
object in the NodeList
if it exists; otherwise, null
.
Exceptions
None