Shows differences in two strings of text. This snippet requires the PEAR Text_Diff package, available from http://pear.php.net/package/Text_Diff. The class can be use like this: $diff = new diff($from_text,$to_text); echo $diff->render(); This will show you the difference in $from_text to $to_text. Text that was added will be shown in green, text that was removed will be shown in red. A full examp