string match percentage php
<?php
$sim = similar_text("hackers", "Hackathons", $percent);
// To display the number of matching characters
echo "Number of similar characters : $simn";
// To display the percentage of matching characters
echo "Percentage of similar characters : $percentn";
?>