- PHP 手册
- 函数参考
- XML 操作
- XMLDiff
- XMLDiff\File
XMLDiff\File::diff
(PECL xmldiff >= 0.8.0)
XMLDiff\File::diff — Diff two XML files
说明
public XMLDiff\File::diff(string$from
, string $to
): string
Diff two local XML files and produce string with the diff information.
参数
-
from
-
Path to the source document.
-
to
-
Path to the target document.
返回值
String with the XML document containing the diff information or NULL.
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/xmldiff-file.diff.php