similar_text

PHP 4, PHP 5, PHP 7, PHP 8
similar_text - Calculate the similarity between two strings

Example #1 similar_text argument swapping example

Result: similarity: 5 (71.428571428571 %) similarity: 3 (42.857142857143 %)
PHP Version:


Example #2 of similar_text

PHP Version:


Function similar_text:

Strings Functions

Most used PHP functions