« enchant_dict_get_error
enchant_dict_is_in_session »

enchant_dict_is_added

(PHP 8)

enchant_dict_is_added — 現在のセッションに、単語が存在するかどうかを調べる

説明

function enchant_dict_is_added(EnchantDictionary $dictionary, string $word): bool

現在のセッションに、指定された単語が存在するかを調べる。

パラメータ

dictionary

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

word

調べる単語。

戻り値

単語が存在した場合、true を返します。 存在しない場合、false を返します。

変更履歴

バージョン 説明
8.0.0 dictionary は、EnchantDictionary クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、resource が期待されていました。

参考

関連キーワード:
enchant   dict   単語   セッション   added   dictionary   session   Enchant   EnchantDictionary   broker   request   期待   辞書   履歴   インスタンス   resource   参考   スペル   チェック
関連する関数・ページ:
function.enchant-dict-add-to-session   function.enchant-dict-remove-from-session   function.enchant-dict-check   function.enchant-dict-add   function.enchant-dict-remove   function.enchant-dict-get-error