(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
pspell_check — Vérifie un mot
pspell_check() vérifie l'orthographe d'un mot.
dictionary
Une instance de PSpell\Dictionary.
word
Le mot testé.
Version | Description |
---|---|
8.1.0 | La paramètre dictionary attend désormais une instance de PSpell\Dictionary ; auparavant, une ressource était expected. |
Exemple #1 Exemple avec pspell_check()
<?php
$pspell = pspell_new ("fr");
if (pspell_check($pspell, "testt")) {
echo 'L\'orthographe est exacte';
} else {
echo 'Désolé, mauvaise orthographe';
}
?>