« enchant_dict_describe
enchant_dict_is_added »

enchant_dict_get_error

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0 )

enchant_dict_get_error — 現在のスペリングセッションの直近のエラーを返す

説明

function enchant_dict_get_error(EnchantDictionary $dictionary): string|false

現在のスペリングセッションの、直近のエラーを返します。

パラメータ

dictionary

enchant_broker_request_dict() または enchant_broker_request_pwl_dict() によって返される Enchant 辞書。

戻り値

エラーメッセージを表す文字列、あるいはエラーが発生していない場合に false を返します。

変更履歴

バージョン 説明
8.0.0 dictionary は、EnchantDictionary クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、resource が期待されていました。
関連キーワード:
enchant   dict   スペリング   セッション   直近   dictionary   Enchant   EnchantDictionary   broker   request   期待   describe   added   辞書   エラーメッセージ   履歴   インスタンス   resource
関連する関数・ページ:
function.enchant-dict-is-added   function.enchant-dict-add-to-session   function.enchant-dict-remove-from-session   function.enchant-dict-add-to-personal   function.enchant-dict-describe   function.enchant-dict-is-in-session