Home >Backend Development >PHP Tutorial >diff - php的文本比较库

diff - php的文本比较库

WBOY
WBOYOriginal
2016-06-06 20:41:121787browse

php中有什么比较好的文本库,可以比对一篇文章的两个版本修改了哪些内容。

回复内容:

php中有什么比较好的文本库,可以比对一篇文章的两个版本修改了哪些内容。

https://github.com/chrisboulton/php-diff
http://paulbutler.org/archives/a-simple-diff-algorithm-in-php/

http://php.net/manual/en/function.similar-text.php
http://php.net/manual/en/function.levenshtein.php
http://php.net/manual/en/function.soundex.php
http://php.net/manual/en/function.metaphone.php

http://php.net/manual/en/book.xdiff.php
http://pear.php.net/package/Text_Diff

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn