There is a PHP class called "FindDiff".Here is an example ... you can put text in two windows and compute difference of words.PHP Fine DiffIn the example, it highlights the differences, but I think you can reverse it find the similarities?The actual class is found here:http://www.raymondhill.net/finediff/finediff-code.phpTo make it all work, you'll need to learn how PHP classes work. (Google that).I don't have time to describe the process of using classes.Also, the... ... Read the entire article at the source link...
http://codango.com/how-to-highlight-words-in-2nd-text-found-in-the-first/
I am happy to share this resource that we found. The content displayed on this page is property of its original author or their organization.
No comments:
Post a Comment