PHP 8.4.0 RC4 available for testing

Класс 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 note

up
0
ngbabu at gmail dot com
8 years ago
The following snippet will show the use case of XMLDiff\File.

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