PHP Checking For Similar Names – String Function

<?php
$names = array('A', 'B','R', 'R');$output = '';
foreach ($names as $name) {
    similar_text($name, 'Roberto Smyth', $percent);
    $output .= "{$name} = {$percent}%\n";
}echo "<pre>{$output}

“;
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.