PSPELL_CHECK(3) 1 PSPELL_CHECK(3)
pspell_check - Check a word
SYNOPSIS
bool pspell_check (int $dictionary_link, string $word)
DESCRIPTION
pspell_check(3) checks the spelling of a word.
PARAMETERS
o $dictionary_link
-
o $word
- The tested word.
RETURN VALUES
Returns TRUE if the spelling is correct, FALSE if not.
EXAMPLES
Example #1
pspell_check(3) Example
<?php
$pspell_link = pspell_new("en");
if (pspell_check($pspell_link, "testt")) {
echo "This is a valid spelling";
} else {
echo "Sorry, wrong spelling";
}
?>
PHP Documentation Group PSPELL_CHECK(3)