pspell_suggest

(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)

pspell_suggestSuggère l'orthographe d'un mot

Description

pspell_suggest ( int $dictionary , string $word ) : array|false

pspell_suggest() retourne un tableau de suggestions pour le mot word.

Liste de paramètres

dictionary

word

Le mot testé.

Valeurs de retour

Retourne un tableau de suggestions pour le mot word.

Exemples

Exemple #1 Exemple avec pspell_suggest()

<?php
$pspell_link 
pspell_new("en");

if (!
pspell_check($pspell_link"testt")) {
    
$suggestions pspell_suggest($pspell_link"testt");

    foreach (
$suggestions as $suggestion) {
        echo 
"Orthographes suggérées : $suggestion<br />"
    }
}
?>