I know of the Text_Diff PEAR package, but is there anything more robust? I'm looking to take diffs of strings with HTML tags in them, and I'd like to know the locations of all the differences including the tags.
A:
What do you mean "for PHP?" ?
Diffs aren't language dependent. I use a diff plugin for my Text Editor (Vim).
Luca Matteis
2010-01-19 00:30:03
If you're building, say, a PHP wiki, you need a way to do diffs in PHP itself.
Frank Farmer
2010-01-19 00:55:04
well then his question should be better formulated.
Luca Matteis
2010-01-19 10:26:23
+1
A:
The PEAR Text_Diff
package is the most complete I know, however if that doesn't fit your needs you can try PHPDiff or the really simple simplediff from Paul Butler.
BTW, this has been discussed here before.
Alix Axel
2010-01-19 01:19:26