« enchant_dict_add_to_session
enchant_dict_describe »

enchant_dict_check

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

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

説明

function 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 クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、resource が期待されていました。
関連キーワード:
enchant   dict   単語   スペル   check   dictionary   Enchant   EnchantDictionary   broker   request   期待   session   describe   辞書   履歴   インスタンス   resource
関連する関数・ページ:
function.enchant-dict-add-to-session   function.enchant-dict-is-added   function.enchant-dict-quick-check   function.enchant-dict-add   function.enchant-dict-remove-from-session   function.enchant-dict-suggest