DomQuery::copy();
Copies the elements of the last XPath expression to all matched elements of $path_destination.
$DomQuery = new DomQuery;
$DomQuery->load($xml)->path('//foo')->copy('//root');
Definition:
public function copy($path_destination)
Parameters:
| Name | Type | Description |
|---|---|---|
| $path_destination | String | The destination of the copied elements. |