I need help with a searching problem. I want to make a correction when someone type in a wrong word, and the script can correct it for them or give them suggestions. Does similar_text() funtion work? If it can, I need help with the coding, sorry that i'm a total newbie.
$file = "dic.txt";
$i = similar_text($query, $file, &$p);
echo "Percentage: $p%";
This is all I know. I don't know how it would pick out the word and print it out for me. Can Someone lend me a hand? If you have more questions on what the hell i am doing, I would love to tell you.
Thank you.