downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<Pspell FunctionsRecode>
Last updated: Thu, 26 Jun 2008

pspell_suggest

(PHP 4 >= 4.0.2, PHP 5)

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.

Parameters

dictionary_link

word

The tested word.

Return Values

Returns an array of possible spellings.

Examples

Example #1 pspell_suggest() example

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

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

   foreach (
$suggestions as $suggestion) {
       echo
"Possible spelling: $suggestion<br />";
   }
}
?>



add a noteadd a note User Contributed Notes
Suggest spellings of a word
There are no user contributed notes for this page.




<Pspell FunctionsRecode>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs