Php/docs/function.enchant-dict-is-in-session

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

enchant_dict_is_in_session

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

enchant_dict_is_in_sessionこのスペリングセッションに '単語' が存在するかどうかを調べる


説明

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

ある単語が、現在のセッション内に既に存在するかどうかを調べます。


パラメータ

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


返り値

単語が存在する場合に true、それ以外の場合に false を返します。


変更履歴

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

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


参考