Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<XMLDiff\MemoryXMLDiff\Memory::merge>
^XMLDiff\MemoryLast updated: Mon, 26 Oct 2026

XMLDiff\Memory::diff

(PECL xmldiff >= 0.8.0)

XMLDiff\Memory::diff — Diff two XML documents

Description

public function 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.


<XMLDiff\MemoryXMLDiff\Memory::merge>
^XMLDiff\MemoryLast updated: Mon, 26 Oct 2026