pspell_check
(PHP 4 >= 4.0.2, PHP 5)
pspell_check -- 檢查單字
Description
boolean
pspell_check ( int dictionary_link, string word)
pspell_check() 檢查單字的拼法, 正確則傳回真值, 拼錯則傳回否值。
示範 1.pspell_check()
$pspell_link = pspell_new ("en");
if (pspell_check ($pspell_link, "testt")) { echo "This is a valid spelling"; } else { echo "Sorry, wrong spelling"; }
|
|