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()

  1. <?php
  2.  
  3. $aspell_link = aspell_new("english");  
  4.  
  5. if (aspell_check($aspell_link, "testt")) { 
  6.    echo "L'orthographe est correct";  
  7. } else { 
  8.    echo "Désolé, l'orthographe est incorrect";  
  9. }  
  10.  
  11. ?> 

Voir aussi


Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Breizh Blog