Login   Register  
PHP Classes
elePHPant
Icontem

PHP Text Diff Highlight class package blog

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

Latest PHP Text Diff Highlight class package blog posts

  All package blogs All package blogs   PHP Text Diff Highlight class PHP Text Diff Highlight class   Blog PHP Text Diff Highlight class package blog   Post article Post article  

1. Showing the Diff between Two Strings and Patch one to get the Other in PHP and JavaScript

Posted on: 2014-01-31

The Text Diff Highlight class is the PHP counterpart of a JavaScript object named JS Diff Viewer that can compare two text strings and extract the list of differences between them.

Now these classes can also take the initial string and rebuild the final string applying the previously extracted list of differences.

Read this article to learn how to use these classes to show the diff between strings and apply the list of differences patch.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   PHP Text Diff Highlight class PHP Text Diff Highlight class   Blog PHP Text Diff Highlight class package blog   Post article Post article