函式:aspell_check()


aspell_check

检查一个单字。

语法: boolean aspell_check(int dictionary_link, string word);

传回值: 布林值

函式种类: 资料处理

内容说明

本函式检查单字的拼字。若拼字正确则传回 true,不正确则传回 false。

使用范例

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


[ 上一页 下一页 ]