Php/docs/function.enchant-dict-check

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

enchant_dict_check

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

enchant_dict_check単語のスペルが正しいかどうかを調べる


説明

enchant_dict_check ( EnchantDictionary $dictionary , string $word ) : bool

単語のスペルが正しい場合に true、 そうでない場合に false を返します。


パラメータ

dictionary
enchant_broker_request_dict() または enchant_broker_request_pwl_dict() によって返される Enchant 辞書。
word
調べる単語。


返り値

単語のスペルが正しい場合に true、 そうでない場合に false を返します。


変更履歴

バージョン 説明
8.0.0 dictionary は、EnchantDictionary クラスのインスタンスを期待するようになりました。

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