dsartain Posted February 2, 2008 Share Posted February 2, 2008 Hey guys, I'm working on a project in which I need to compare two text files for similarities. Kind of like an email content filter would do, but dumbed way down. I know there is a PEAR text_diff package that looks for differences, but I need something like that package that looks for similarities...ideas??? Alternatively, can I use the php string function to loop through both files and search for the similarities?? Thanks. Link to comment https://forums.phpfreaks.com/topic/88993-compare-two-text-files-for-similarities/ Share on other sites More sharing options...
resago Posted February 2, 2008 Share Posted February 2, 2008 load the 2 into arrays and use array_diff or other functions. Link to comment https://forums.phpfreaks.com/topic/88993-compare-two-text-files-for-similarities/#findComment-455790 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.