Determine the similarity between two strings is provided by the similar_text function
<?php $matches = similar_text ('see', 'say', &$per); echo "Matches: $matches - Percentage: $per\n"; ?>