| 
<?php
 include("StringMatch.php");
 
 $string1 = "this should be same the";
 $string2 = "this should be the same";
 $length1 = strlen($string1);
 $length2 = strlen($string2);
 $limit = 0.4;
 $comparison = new StringMatch;
 $result = $comparison->fstrcmp ($string1, $length1, $string2, $length2, $limit);
 
 echo "Strings match around: ".round(($result*100),2)."%";
 ?>
 |