pspell_save_wordlist

個人の単語リストをファイルに保存する

説明

bool pspell_save_wordlist(PSpell\Dictionary $dictionary)

pspell_save_wordlist は、 現在のセッションから個人の単語リストを保存します。 ファイルの位置は pspell_config_personal および(オプションで) pspell_config_repl で指定されている必要があります。

パラメータ

dictionary

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

戻り値

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

変更履歴

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

例1 pspell_add_to_personal

<?php
$pspell_config 
pspell_config_create("en");
pspell_config_personal($pspell_config"/tmp/dicts/newdict");
$pspell pspell_new_config($pspell_config);

pspell_add_to_personal($pspell"Vlad");
pspell_save_wordlist($pspell);
?>

注意

注意:

この関数は、pspell .11.2 および aspell .32.5 以降がない限り動作しないことに注意してください。