php8.5
Home/ Manual/ xmldiff / xmldiff-file/ XMLDiff\File::diff

XMLDiff\File::diff

PHP function Edit on GitHub ✎

(PECL xmldiff >= 0.8.0)

Diff two XML files

Description

XMLDiff\File::diff(string $from, string $to): string

Diff two local XML files and produce string with the diff information.

Parameters

from

Path to the source document.

to

Path to the target document.

Return Values

String with the XML document containing the diff information or NULL.

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