-
Notifications
You must be signed in to change notification settings - Fork 20
Nodes ArrayAccess
Thomas Weinert edited this page Jul 12, 2018
·
2 revisions
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
- Home
- Getting Started
- Tasks
- Plugins
- Functions
- Lists
- Creator (5.1)
- CSS Selectors
- Convertors
- Loaders
- Serializers (5.1)
- Transformers (5.1)
- Extended DOM
- XMLReader (6.1)
- XMLWriter (6.1)
- Interfaces