略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: XMLDiff\File

2024-04-28

The XMLDiff\File class

(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
}

目录

add a noteadd a note

User Contributed Notes 1 note

up
2
ngbabu at gmail dot com
6 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);
?>

官方地址:https://www.php.net/manual/en/class.xmldiff-file.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3