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

<pspell_add_to_sessionpspell_clear_session>
Last updated: Thu, 26 Jun 2008

pspell_check

(PHP 4 >= 4.0.2, PHP 5)

pspell_check — Check a word

Description

bool pspell_check ( int $dictionary_link , string $word )

pspell_check() checks the spelling of a word.

Parameters

dictionary_link

word

The tested word.

Return Values

Returns TRUE if the spelling is correct, FALSE if not.

Examples

Example #1 pspell_check() Example

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

if (
pspell_check($pspell_link, "testt")) {
   echo
"This is a valid spelling";
} else {
   echo
"Sorry, wrong spelling";
}
?>



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




<pspell_add_to_sessionpspell_clear_session>
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