函数名:enchant_dict_check()
函数描述:该函数用于检查拼写字典中是否包含指定单词。
用法:enchant_dict_check(string $dictionary, string $word)
参数:
返回值:
示例:
$dictionary = enchant_broker_init();
// 检查 en_US 字典中是否包含单词 "hello"
if (enchant_dict_check("en_US", "hello")) {
echo "en_US 字典中包含单词 'hello'";
} else {
echo "en_US 字典中不包含单词 'hello'";
}
enchant_broker_free($dictionary);
注意:
希望以上信息对你有所帮助!如有任何疑问,请随时提问。