aspell_check

aspell_check -- check a word

Description

boolean aspell_check(int dictionary_link, string word);

aspell_check() checks the spelling of a word and returns true if the spelling is correct, false if not.

Example 1. aspell_check

  1 
  2 $aspell_link=aspell_new("english");
  3 if (aspell_check($aspell_link,"testt")) {
  4     echo "This is a valid spelling";
  5 } else {
  6     echo "Sorry, wrong spelling";
  7 }
  8