Login   Register  
PHP Classes
elePHPant
Icontem

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

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

  Author Author  
Picture of Philipp Strazny
Name: Philipp Strazny is available for providing paid consulting. Contact Philipp Strazny .
Classes: 5 packages by
Country: United States United States
Age: 47
All time rank: 1537204 in United States United States
Week rank: 377 Up39 in United States United States Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x


  Detailed description   Download Download .zip .tar.gz  
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: -
PHP version: 3.0
License: GNU Lesser General Public License (LGPL)
All time users: 399 users
All time rank: 5935
Week users: 2 users
Week rank: 755 Up
 
  Groups   Rate classes User ratings   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


  User ratings  
Not yet rated by the users

  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

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.