Php/docs/function.enchant-dict-get-error

提供:Dev Guides
< Php
移動先:案内検索

enchant_dict_get_error

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

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


説明

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 クラスのインスタンスを期待するようになりました。

これより前のバージョンでは、リソース が期待されていました。