Provides diff function in text and HTML mode.
Paul's Simple Diff Algorithm v 0.1
© Paul Butler 2007 https://www.paulbutler.org/
May be used and distributed under the zlib/libpng license.
This code is intended for learning purposes; it was written with short
code taking priority over performance. It could be used in a practical
application, but there are a few ways it could be optimized.
Given two arrays, the function diff will return an array of the changes.
I won't describe the format of the array, but it will be obvious
if you use print_r() on the result of a diff on some test data.
Returns difference of 2 text
@param $old
@param $newswHtmlDiff($old,$new)
Wraps difference of two texts in a pretty HTML code with ins and del tags
@param $old
@param $new
$diff, $matrix, $maxlen, $nindex, $nkeys, $nmax, $oindex, $omax, $ovalue, $result
Short variables: $k, $new, $old
array