(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
pspell_check — Verifica un término
pspell_check() verifica la ortografía de un término.
Versión | Descripción |
---|---|
8.1.0 |
The dictionary parameter expects an PSpell\Dictionary
instance now; previously, a recurso was expected.
|
Ejemplo #1 Ejemplo con pspell_check()
<?php
$pspell = pspell_new ("fr");
if (pspell_check($pspell, "testt")) {
echo 'La ortografía es correcta';
} else {
echo 'Disculpe, ortografía incorrecta';
}
?>