Nodes ArrayAccess - ThomasWeinert/FluentDOM GitHub Wiki
FluentDOM\Nodes
implements the ArrayAccess interface. You can access the found nodes using array syntax.
$xml = <<<XML
<html>
<body>
<p>Hello</p>
<p>cruel</p>
<p>World</p>
</body>
</html>
XML;
$document = FluentDOM($xml)->find('//p');
echo $document[0], ' ', $document[2];
Hello World