The Little Guy Posted January 14, 2013 Share Posted January 14, 2013 I am writing a site where you can edit answers users provide. I am wondering, how can I use php to do a diff on two strings, and then also merge two strings into one, similar to the way git works. Does anyone know how this can be done or is their a library available to do both of these things? Link to comment https://forums.phpfreaks.com/topic/273161-php-diffmerge/ Share on other sites More sharing options...
The Little Guy Posted January 14, 2013 Author Share Posted January 14, 2013 I think I found something that may work: https://github.com/paulgb/simplediff/blob/master/php/simplediff.php Link to comment https://forums.phpfreaks.com/topic/273161-php-diffmerge/#findComment-1405713 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.