Manuel PHP
aspell_check
(PHP 4 <= 4.2.3)
aspell_check — Vérifie un mot [Obsolète]
Description
bool aspell_check
( int $dictionary_link
, string $word
)
aspell_check() vérifie l'orthographe d'un mot.
Liste de paramètres
- dictionary_link
-
L'identifiant du lien vers le dictionnaire retourné par la fonction aspell_new().
- word
-
Le mot testé.
Valeurs de retour
Retourne TRUE si l'orthographe est correct, FALSE sinon.
Exemples
Example#1 Exemple avec aspell_check()
- <?php
- $aspell_link = aspell_new("english");
- if (aspell_check($aspell_link, "testt")) {
- echo "L'orthographe est correct";
- } else {
- echo "Désolé, l'orthographe est incorrect";
- }
- ?>
Remonter 
