prashker
Veteran Member
Posts: 5109 Reputation: 104
– / / –
Joined: Mar 2005
Status: Away
|
RE: Searching for similar variable - php
Do something with similar_text()
php code: <?php
$list = file('list.txt');
$string = "dog";
foreach $list as $tree {
similar_text($string, $tree, $percent);
if ($percent > 75) {
echo 'Did you mean' . $tree . '?';
}
}
?>
This post was edited on 06-30-2009 at 08:47 PM by prashker.
|
|