(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
pspell_add_to_session — Add the word to the wordlist in the current session
pspell_add_to_session(PSpell\Dictionary $dictionary, string $word): bool
pspell_add_to_session() adds a word to the wordlist associated with the current session. It is very similar to pspell_add_to_personal()
dictionaryAn PSpell\Dictionary instance.
wordThe added word.
| Version | Description |
|---|---|
| 8.1.0 | The dictionary parameter expects an PSpell\Dictionary instance now; previously, a resource was expected. |
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.pspell-add-to-session.php