(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
pspell_check — Vérifie un mot
$dictionary
, string $word
) : boolpspell_check() vérifie l'orthographe d'un mot.
dictionary
word
Le mot testé.
Retourne true
si l'orthographe est correcte, false
sinon.
Exemple #1 Exemple avec pspell_check()
<?php
$pspell_link = pspell_new ("fr");
if (pspell_check($pspell_link, "testt")) {
echo 'L\'orthographe est exacte';
} else {
echo 'Désolé, mauvaise orthographe';
}
?>