enchant_dict_get_error()

获取拼写检查器字典的最后一个错误消息

首字母:E

函数名:enchant_dict_get_error()

函数描述:获取拼写检查器字典的最后一个错误消息。

适用版本:Enchant扩展PHP 5 >= 5.3.0, PECL enchant >= 0.1.0

语法:string enchant_dict_get_error( resource $dict )

参数:

  • dict:拼写检查器字典资源。由enchant_broker_request_dict()或enchant_broker_get_dict()函数返回。

返回值:

  • 返回最后一个错误消息的字符串,如果没有错误发生则返回空字符串。

说明:

  • enchant_dict_get_error()函数用于获取拼写检查器字典的最后一个错误消息。当一个错误发生时,可以使用该函数来获取详细的错误描述。

示例: