Blog Details

RoiGap > Blog > PHP > Levenshtein

Levenshtein

Use this function to calculate the distance between two strings in PHP. 

Practical applications: 

1. Make sure that the Password does not match the Username of the user who is trying to sign up 

2. Identify domain spoofing for security purposes 

Read the official documentation for more details.