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\Base::diffXMLDiff\DOM>
^XMLDiff\BaseLast updated: Mon, 26 Oct 2026

XMLDiff\Base::merge

(PECL xmldiff >= 0.8.0)

XMLDiff\Base::merge — Produce new XML document based on diff

Description

abstract public function XMLDiff\Base::merge(mixed $src, mixed $diff): mixed

Abstract merge method to be implemented by inheriting classes.

Basically the method purpose is to produce a new XML document based on the diff information.

Parameters

src

Source XML document.

diff

Document produced by the diff method.

Return Values

Implementation dependent.


<XMLDiff\Base::diffXMLDiff\DOM>
^XMLDiff\BaseLast updated: Mon, 26 Oct 2026