Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Aspell functions [deprecated] : aspell_check

aspell_check

Check a word [deprecated] (PHP 4 <= 4.2.3)
bool aspell_check ( int dictionary_link, string word )

aspell_check() checks the spelling of a word.

Parameters

dictionary_link

The dictionnary link identifier returned by aspell_new().

word

The tested word.

Return Values

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

Examples

Example 329. aspell_check() Example

<?php

$aspell_link
= aspell_new("english");

if (
aspell_check($aspell_link, "testt")) {
   echo
"This is a valid spelling";
} else {
   echo
"Sorry, wrong spelling";
}

?>


Change Language


Follow Navioo On Twitter
aspell_check_raw
aspell_check
aspell_new
aspell_suggest
eXTReMe Tracker