September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool pspell_check(int dictID, string word)
Checks the spelling of a word.
Returns:
TRUE if spelling is recognized; FALSE otherwise
Description:
This function returns TRUE if word is recognized as correct according to the dictionary associated with dictID . If word is not recognized, FALSE is returned. Leading and trailing whitespace(s) are ignored. If you want to check the spelling of the word exactly as it’s presented, use aspell_check_raw().
Example:
$word = 'Tralfamador';
if (!pspell_check($dictid, $word)) {
echo "Incorrect.\n";
} else {
echo "$word is correct.\n";
}
|
Read now
Unlock full access