The Little Guy Posted January 14, 2013 Share Posted January 14, 2013 (edited) 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? Edited January 14, 2013 by The Little Guy Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/273161-php-diffmerge/#findComment-1405713 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.