pspell_check --- 檢查單字的拼法
語法 : boolean pspell_check (int dictionary_link, string word)
說明 :
pspell_check( )檢查單字的拼法,如果拼法是正確的則傳回true,如果是錯誤的則傳回false。
Example :
<?php
$pspell_link = pspell_new ("en");
if (pspell_check ($pspell_link, "testt")) {
echo "This is a valid spelling";
} else {
echo "Sorry, wrong spelling";
}
?>