<?php
$sim = similar_text("hackers", "Hackathons", $percent);
// To display the number of matching characters
echo "Number of similar characters : $sim
";
// To display the percentage of matching characters
echo "Percentage of similar characters : $percent
";
?>
<?php
$sim = similar_text("matching characters", "matching character", $percent);
// To display the number of matching characters
echo "Number of similar characters : $sim
".'<br>';
// To display the percentage of matching characters
echo "Percentage of similar characters : $percent
";
?>