php8.5
Home/ Manual/ xmldiff / xmldiff-dom/ XMLDiff\DOM::merge

XMLDiff\DOM::merge

PHP function Edit on GitHub ✎

(PECL xmldiff >= 0.8.0)

Produce merged DOMDocument

Description

XMLDiff\DOM::merge(DOMDocument $src, DOMDocument $diff): DOMDocument

Create new DOMDocument based on the diff.

Parameters

src

Source DOMDocument object.

diff

DOMDocument object containing the diff information.

Return Values

Merged DOMDocument or NULL.

Source: reference/xmldiff/xmldiff-dom/merge.xml · from the official PHP manual (php/doc-en)