php8.5
Home/ Manual/ xmldiff / xmldiff-base/ XMLDiff\Base::diff

XMLDiff\Base::diff

PHP function Edit on GitHub ✎

(PECL xmldiff >= 0.8.0)

Produce diff of two XML documents

Description

XMLDiff\Base::diff(mixed $from, mixed $to): mixed

Abstract diff method to be implemented by inheriting classes.

The basic purpose of this method is to produce diff of the two documents. The param order matters and will produce different output.

Parameters

from

Source XML document.

to

Target XML document.

Return Values

Implementation dependent.

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