Login   Register  
PHP Classes
elePHPant
Icontem

Very Simple Diff: Compare two strings and return the differences

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-02-02 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 345 All time: 6,315 This week: 1,461Up
Version License PHP version Categories  
very-simple-diff 1.5GNU General Public Lice...5.0Text processing
Description Author  

This class can be used to compare two strings and return the differences.

It splits two strings in lines and compare the lines to determine the differences.

The class returns two arrays that tell which lines would need to be added or removed to turn the first string into the second string.

Picture of Tom Parkison
Name: Tom Parkison <contact>
Classes: 2 packages by
Country: United States United States
Age: ???
All time rank: 2520315 in United States United States
Week rank: 20 Up3 in United States United States Up

  Files folder image Files  
File Role Description
Plain text file verySimpleDiff.class.php Class The core class file.

 Version Control Unique User Downloads Download Rankings  
 0%Total:345All time:6,315
 This week:0This week:1,461Up