pspell_check

pspell_check -- Vérifie un mot

Description

boolean pspell_check ( resource dictionary_link, string word)

pspell_check( ) vérifie l'orthographe d'un mot et retourne TRUE si l 'orthographe est correcte , FALSE sinon .

Exemple 1 . pspell_check( )

 
?php

 
$pspell_link

 
=

 
pspell_new

 
(

 
"french")

 
;

 
if

 
(pspell_check

 
($pspell_link

 
,

 
"testt")

 
)

 
{

 
echo

 
"L'orthographe

 
est

 
exacte"

 
;

 
}

 
else

 
{

 
echo

 
"Désolé

 
,

 
mauvaise

 
orthographe"

 
;

 
}

 
?