Google

NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.73 ">

pspell_suggest

(PHP 4 >= 4.0.2)

pspell_suggest -- Suggèegrave;re une orthographe

Description

array pspell_suggest ( resource dictionary_link, string word)

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

Exemple 1. pspell_suggest()

<?php
$pspell_link = pspell_new ("english");
if (!pspell_check ($pspell_link, "testt")){
    $suggestions = pspell_suggest ($pspell_link, "testt");
    for ($i=0; $i < count ($suggestions); $i++) {
        echo "Orthographes suggerées : " . $suggestions[$i] . "<br>";
    }
}
?>