Login   Register  
PHP Classes
elePHPant
Icontem

Simple string diff

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

  Author  
Picture of Artur Graniszewski
Name: Artur Graniszewski is available for providing paid consulting. Contact Artur Graniszewski .
Packages: 13 Browse all classes by Artur Graniszewski Browse all classes by
Country: Poland Poland - PHP jobs in Poland
Age: 31
All time rank: 39310 in Poland Poland
Week rank: 97 Up3 in Poland Poland Up
Innovation award
Innovation award
Nominee: 7x

Winner: 1x


  Detailed description   Download .zip .tar.gz  
This class can be used to compare two strings and return the changed lines.

It takes two strings and split them into arrays of lines.

The class can compare the two arrays of lines and return a new text string denoting with + and - the lines that were added and removed from the first to the second string.

  Classes of Artur Graniszewski  >  Simple string diff  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Simple string diff
Base name: diff
Description: Compare two strings and return changed lines
Version: 1.0
PHP version: 5.0
License: BSD License
All time users: 390 users
All time rank: 5542
Week users: 2 users
Week rank: 1335 Up
 
  Groups   Screenshots Screenshots   Rate classes User ratings  
  Applications   Related links   Files Files  

  Groups  
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

  Files folder image Screenshots  
Sample output
File Role Description
Accessible without login Image file diffSample.PNG Screen Sample output


  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Diff algoritm on Wikipedia Algorithm description

  Files folder image Files  
File Role Description
Plain text file diffClass.php Class Main class
Accessible without login Plain text file diffExample.php Example Example script

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