|All requests||>||What is the best PHP class to compare...||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Calmette - 7 years ago (2015-02-27)
I want to compare strings and get the differences between them.
This class has similar functionality. It does not render the differences for you, but provides an optimized compressed version (to save space) of the differences and also can patch back to the original string from the optimized differences. However, if you need the class to render the differences you should prefer the above class of Manuel Lemos.
This class can compare two strings and return the list of changes to turn one string into the other, like lines or characters to add or removed.
It can also present the string changes in HTML so you can view them in a Web page.