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

XMLDiff\Base::diff

(PECL xmldiff >= 0.8.0)

XMLDiff\Base::diff — Produce diff of two XML documents

Description

abstract public function XMLDiff\Base::diff(mixed $from, mixed $to): mixed

Abstract diff method to be implemented by inheriting classes.

The basic purpose of this method is to produce diff of the two documents. The param order matters and will produce different output.

Parameters

from

Source XML document.

to

Target XML document.

Return Values

Implementation dependent.


<XMLDiff\Base::__constructXMLDiff\Base::merge>
^XMLDiff\BaseLast updated: Mon, 26 Oct 2026