XMLDiff\File 类

(PECL xmldiff >= 0.8.0)

介绍

类概要

class XMLDiff\File extends XMLDiff\Base {
/* 方法 */
public diff(string $from, string $to): string
public merge(string $src, string $diff): string
/* 继承方法 */
abstract public XMLDiff\Base::diff(mixed $from, mixed $to): mixed
abstract public XMLDiff\Base::merge(mixed $src, mixed $diff): mixed
}

目录

添加注释

用户贡献的注释 1 条注释

0
ngbabu at gmail dot com
8 年前
以下代码片段将展示 XMLDiff\File 的用例。

<?php
$dxml
=new XMLDiff\File;
$diff = $dxml->diff("file1.xml", "file2.xml");
$difffile = 'difference.xml';
file_put_contents($difffile, $diff);
?>
To Top