Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to read two text files and output the percent of similarity of them and which letters where unsimilar. The first part i can do it with the function similar_text($text1, $text2, $percent), but i really how to do the 2nd part. Any ideas??
Thanks in advance
Posted

1 solution

This is what you can use: http://us3.php.net/file_get_contents[^].

Read one and another file into string and compare the obtained string the way you need. However, the criteria for "similarity" can be not trivial. I am not sure if it even makes sense, but this is up to you to decide what criteria you need to apply.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900