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

XMLDiff\DOM::diff

PHP function Edit on GitHub ✎

(PECL xmldiff >= 0.8.0)

Diff two DOMDocument objects

Description

XMLDiff\DOM::diff(DOMDocument $from, DOMDocument $to): DOMDocument

Diff two DOMDocument instances and produce the new one containing the diff information.

Parameters

from

Source DOMDocument object.

to

Target DOMDocument object.

Return Values

DOMDocument with the diff information or NULL.

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