array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.pspell-add-to-session.php', 1 => 'pspell_add_to_session', 2 => 'Add the word to the wordlist in the current session', ), 'up' => array ( 0 => 'ref.pspell.php', 1 => 'Pspell Функції', ), 'prev' => array ( 0 => 'function.pspell-add-to-personal.php', 1 => 'pspell_add_to_personal', ), 'next' => array ( 0 => 'function.pspell-check.php', 1 => 'pspell_check', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/pspell/functions/pspell-add-to-session.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

pspell_add_to_session

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

pspell_add_to_sessionAdd 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()

Параметри

dictionary

Примірник PSpell\Dictionary.

word

The added word.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.

Журнал змін

Версія Опис
8.1.0 Тепер параметр dictionary має бути примірником PSpell\Dictionary; раніше очікувався resource.