note 3538 modified in function.similar-text by danbrown
| From: | danbrown@php.net | Date: | Mon, 01 Mar 2010 15:56:10 +0000 |
| Subject: | note 3538 modified in function.similar-text by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166479@lists.php.net to get a copy of this message | ||
Don't forget your passing the double as a reference. If you use this and soundex() together you
can get a pretty good guess as to how well two words match. Is useful for simple bot-like programs.
<?php
$i = similar_text($first_word, $second_word, &$p);
echo("Matched: $i Percentage: $p%");
?>
--was--
$i = similar_text($first_word, $second_word, &$p);
echo("Matched: $i Percentage: $p%");
Don't forget your passing the double as a reference. If you use this and soundex() together you
can get a pretty good guess as to how well two words match. Is useful for simple bot-like programs.
http://php.net/manual/en/function.similar-text.php