enchant_dict_check

(PHP 5 >= 5.3.0, PHP 7, PHP 8, 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.0dictionary は、EnchantDictionary クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、リソース が期待されていました。
To Top