Forum und email

aspell_check

(PHP 4 <= 4.2.3)

aspell_check — 檢查一個單字

Description

boolean aspell_check ( int $dictionary_link , string $word )

aspell_check() 檢查一個單字, 如拼法正確傳回真值, 拼錯了則傳回否值。

Example#1 aspell_check()

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