NodeList::first

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

Source Code
If you find this project useful, consider leaving a on GitHub! Thank you!