DomQuery::appendTo();
Append all of the matched elements of the previous XPath expression to another, specified, set of elements.
$DomQuery = new DomQuery;
$DomQuery->load($xml)->path('//foo')->appendTo('//baz');
Definition:
public function appendTo($path_destination)
Parameters:
| Name | Type | Description |
|---|---|---|
| $path_destination | String | The destination path of all matched elements. |