Is it possible to return the number of characters which differ between two strings?
In my case, I would like to run a check to quantify how much a user's draft has changed vs the database version. With this information, the system can decide weather or not the draft needs to be auto-saved.
For example:
echo string_diff("Hello world", "Hi World");
This should output "5", indicating that characters "ello" & "W" are different.
Is this possible with PHP? How about with mySQL?