pspell_check
(PHP4 CVS only)
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";
}
?>