PHP string levenshtein() FunctionPHP string levenshtein() function is in-built function. It is used to calculate the distance between two strings. By default, PHP provides some operations (replace, insert and delete) It returns the Levenshtein distance between the two argument strings or -1, if the string exceeds 255 characters. Syntax:
Note: The levenshtein() function is not case-sensitive language.Example 1Output: 1 Example 2Output: 2 Example 3Output: 30 Example 4Output: 10 Next TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India