diff + merge

From: Date: Sun, 27 Aug 2000 05:43:54 +0000
Subject: diff + merge
Groups: php.dev 
Request: Send a blank email to php-dev+get-30798@lists.php.net to get a copy of this message
hello all, sometime in the near future it may be necessary for me to add a diff() and merge() function to PHP for a project i will be working on. i imagine that they would look something like this: string diff(string basetext, string modtext); eg. $difftext = diff($oldtext,$newtext); string merge(string basetext, string diff [,string addbefore,string addafter]); eg. $newtext = merge($oldtext,$difftext); OR $newtext = merge($oldtext,$difftext,"text inserted below this line","text inserted above this line"); if anyone can suggest an alternative solution or is interested in helping out i would greatly appreciate your feedback. thanks, - avi -- People were always asking me, did I know Tyler Durden.

« previous php.dev (#30798) next »