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\Memory::diffXMLDiff\File>
^XMLDiff\MemoryLast updated: Mon, 26 Oct 2026

XMLDiff\Memory::merge

(PECL xmldiff >= 0.8.0)

XMLDiff\Memory::merge — Produce merged XML document

Description

public function XMLDiff\Memory::merge(string $src, string $diff): string

Create new XML document based on diffs and source document.

Parameters

src

Source XML document.

diff

XML document containing diff information.

Return Values

String with the new XML document or NULL.


<XMLDiff\Memory::diffXMLDiff\File>
^XMLDiff\MemoryLast updated: Mon, 26 Oct 2026