-
Notifications
You must be signed in to change notification settings - Fork 20
Nodes ToArray
Thomas Weinert edited this page Jul 30, 2014
·
1 revision
array toArray();
Returns the found nodes as an array.
$xml = <<<XML
<html>
<head>
<title>Examples: FluentDOM\Nodes::toArray()</title>
</head>
<body>
<p>Hello</p>
<p>cruel</p>
<p>World</p>
</body>
</html>
XML;
$nodes = FluentDOM($xml)->find('//p')->toArray();
array_splice($nodes, 1, 1);
echo implode(' ', $nodes);
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