similar_text()

It calculates the similarity between two strings

Example

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

Output

7

Share