levenshtein()

It calculate Levenshtein distance between two strings

Example

<?php
echo levenshtein(“phpcode”,”phpcodez”);
?>

Output

1

Share