pspell_add_to_personal

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

pspell_add_to_personalユーザーの単語リストに単語を追加する

説明

pspell_add_to_personal(int $dictionary, string $word): bool

pspell_add_to_personal() はユーザーの単語リスト に単語を追加します。ディレクトリをオープンするために pspell_new_config()pspell_config_personal() とともに使用した場合、 pspell_save_wordlist() で単語リストを保存することが可能です。

パラメータ

dictionary

word

追加する単語。

返り値

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

例1 pspell_add_to_personal()

<?php
$pspell_config 
pspell_config_create("en");
pspell_config_personal($pspell_config"/var/dictionaries/custom.pws");
$pspell_link pspell_new_config($pspell_config);

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

注意

注意:

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

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top