You can use the
int similar_text (string first, string second [, double percent])
function which tells you how similar they are in a percentage (just the ticket).
If you put &$percent as the third parameter, it will be filled with the percentage of similarity (what u need).
There you go, hope that helps.
Dave