Query: pspell_add_to_personal
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PSPELL_ADD_TO_PERSONAL(3) 1 PSPELL_ADD_TO_PERSONAL(3) pspell_add_to_personal - Add the word to a personal wordlistSYNOPSISbool pspell_add_to_personal (int $dictionary_link, string $word)DESCRIPTIONpspell_add_to_personal(3) adds a word to the personal wordlist. If you used pspell_new_config(3) with pspell_config_personal(3) to open the dictionary, you can save the wordlist later with pspell_save_wordlist(3).PARAMETERSo $dictionary_link - o $word - The added word.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 pspell_add_to_personal(3) <?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); ?>NOTESNote This function will not work unless you have pspell .11.2 and aspell .32.5 or later. PHP Documentation Group PSPELL_ADD_TO_PERSONAL(3)