Daily Archives: May 15, 2007

A simple diff algorithm in PHP

A diff algorithm in its most basic form takes two strings, and returns the changes needed to make the old string into the new one. They are useful in comparing different versions of a document or file, to see at … Continue reading

Posted in PHP | 46 Comments