-
Notifications
You must be signed in to change notification settings - Fork 20
Query Clone
Thomas Weinert edited this page Jul 31, 2014
·
1 revision
FluentDOM\Query clone();
Clone matched DOM Elements and select the clones.
$html = <<<HTML
<html>
<head>
<title>Examples: FluentDOM\Query::children()</title>
</head>
<body>
<span>I have nothing more to say... </span>
<div id="foo">FOO! </div>
</body>
</html>
HTML;
echo FluentDOM($html)
->find('//span')
->clone()
->appendTo('//div[@id = "foo"]');
<?xml version="1.0"?>
<html>
<head>
<title>Examples: FluentDOM\Query::children()</title>
</head>
<body>
<span>I have nothing more to say... </span>
<div id="foo">FOO! <span>I have nothing more to say... </span></div>
</body>
</html>
- 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