php8.5
Home/ Manual/ xmldiff / xmldiff-memory/ XMLDiff\Memory::diff

XMLDiff\Memory::diff

PHP function Edit on GitHub ✎

(PECL xmldiff >= 0.8.0)

Diff two XML documents

Description

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

Diff two strings containing XML documents and produce the diff information.

Parameters

from

Source XML document.

to

Target XML document.

Return Values

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

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