aspell_suggest
(PHP 3 >= 3.0.7, PHP 4 <= 4.2.3)
aspell_suggest -- Suggère l'orthographe d'un mot [Obsolète]
Description
array
aspell_suggest ( int dictionary_link, string word )
aspell_suggest() retourne un tableau contenant
les orthographes possibles d'un mot mal orthographié.
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 un tableau de suggestions.
Exemples
Exemple 1. Exemple avec aspell_suggest()
<?php
$aspell_link = aspell_new("french");
if (!aspell_check($aspell_link, "test")) { $suggestions = aspell_suggest($aspell_link, "test");
foreach ($suggestions as $suggestion) { echo "Suggestions possibles : $suggestion<br />\n"; } }
?>
|
|