★ wanayoo — archive 1999 http://www.php.net/manual/function.pspell-suggest.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Pspell
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Pspell
* pspell_new
* pspell_check
* pspell_suggest
Manual: pspell_suggest
View the source code for this pageSearch the site



Previous page
 pspell_check
 Updated
Sat, 12 Aug 2000
readline 
Next page


pspell_suggest

(PHP4 CVS only)

pspell_suggest -- Suggest spellings of a word

Description

array pspell_suggest (int dictionary_link, string word)

Pspell_suggest() returns an array of possible spellings for the given word.

Example 1. Pspell_suggest()


$pspell_link = pspell_new ("en");

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

    for ($i=0; $i < count ($suggestions); $i++) {
        echo "Possible spelling: " . $suggestions[$i] . "<br>"; 
    }
}
      


 About Notes


Previous page
 pspell_check
 Updated
Sat, 12 Aug 2000
readline 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.