PHP String Diff Class: Compare and find differences between two strings

Recommend this page to a friend!

  Author Author  
Picture of Philipp Strazny
Name: Philipp Strazny <contact>
Classes: 5 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 3x

Winner: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can compare and find differences between two strings.

It takes two strings and split them into arrays so it can find the differences by compare the arrays. It supports comparing UTF-8 encoding strings.

The class can return a HTML string with <del> and <ins> tags to show what characters should be inserted or deleted to transform one string in the other.

  Classes of Philipp Strazny  >  PHP String Diff Class  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP String Diff Class
Base name: string-diff
Description: Compare and find differences between two strings
Version: 1.0.0
PHP version: 3.0
License: GNU Lesser General Public License (LGPL)
 
  Groups   Applications   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image Algorithms Numerical and statistical algorithms View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Plain text file StringDiff.php Class the StringDiff class; use StringDiff::diff or StringDiff::overlap methods
Accessible without login Plain text file StringDiffTest.php Test testing all relevant functionality
Accessible without login Plain text file example.php Example usage examples: English, Chinese, Russian, Thai characters

Install with Composer Install with Composer - Download Download all files: string-diff.tar.gz string-diff.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

For more information send a message to info at phpclasses dot org.