QueryPath\DOMQuery::appendTo PHP Method

appendTo() public method

This cycles through all of the current matches and appends them to the context given in $destination. If a selector is provided then the $destination is queried (using that selector) prior to the data being appended. The data is then appended to the found items.
See also: append()
See also: prependTo()
public appendTo ( DOMQuery $dest )
$dest DOMQuery A DOMQuery object that will be appended to.
    public function appendTo(DOMQuery $dest)
    {
        foreach ($this->matches as $m) {
            $dest->append($m);
        }
        return $this;
    }