pspell_check
pspell_check
Check a word
bool **pspell_check** PSpell\Dictionary $dictionary string $word
checks the spelling of a word.
pspell_check
dictionary``wordThe tested word.
Returns true if the spelling is correct, false if not.
Voorbeeld: Example
<?php
$pspell = pspell_new("en");
if (pspell_check($pspell, "testt")) {
echo "This is a valid spelling";
} else {
echo "Sorry, wrong spelling";
}
?>