CakeFest 2024: The Official CakePHP Conference

pspell_add_to_session

(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)

pspell_add_to_session現在のセッションの単語リストに単語を追加する

説明

pspell_add_to_session(PSpell\Dictionary $dictionary, string $word): bool

pspell_add_to_session() は、 現在のセッションに関連する単語リストに単語を追加します。この関数は、 pspell_add_to_personal() に似ています。

パラメータ

dictionary

PSpell\Dictionary クラスのインスタンス。

word

追加する単語。

戻り値

成功した場合に true を、失敗した場合に false を返します。

変更履歴

バージョン 説明
8.1.0 引数 dictionary は、PSpell\Dictionary クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、リソース を期待していました。
add a note

User Contributed Notes 1 note

up
1
admin at codefisher dot org
16 years ago
This function does not accept hyphenated words, which is kind of annoying.
To Top