(PECL xmldiff >= 0.8.0)
$from
$to
$src
$diff
$nsname
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); ?>
Коментарии
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);
?>