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