PHP 8.1.0 RC 2 available for testing

The XMLDiff\File class

(PECL xmldiff >= 0.8.0)

Giriş

Sınıf Sözdizimi

class XMLDiff\File extends XMLDiff\Base {
/* Yöntemler */
public diff(string $from, string $to): string
public merge(string $src, string $diff): string
/* Miras alınan yöntemler */
public XMLDiff\Base::__construct(string $nsname)
abstract public XMLDiff\Base::diff(mixed $from, mixed $to): mixed
abstract public XMLDiff\Base::merge(mixed $src, mixed $diff): mixed
}

İçindekiler

add a note add a note

User Contributed Notes 1 note

up
2
ngbabu at gmail dot com
5 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