array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.pspell-add-to-personal.php', 1 => 'pspell_add_to_personal', ), 'up' => array ( 0 => 'ref.pspell.php', 1 => 'Pspell Funktionen', ), 'prev' => array ( 0 => 'ref.pspell.php', 1 => 'Pspell Funktionen', ), 'next' => array ( 0 => 'function.pspell-add-to-session.php', 1 => 'pspell_add_to_session', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'de', 'path' => 'reference/pspell/functions/pspell-add-to-personal.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
pspell_add_to_personal — Fügt der persönlichen Wortliste ein Wort hinzu
pspell_add_to_personal() fügt der persönlichen Wortliste ein Wort hinzu. Falls pspell_new_config() mit pspell_config_personal() verwendet wurde, um das Wörterbuch zu öffnen, kann die Wortliste später mit pspell_save_wordlist() gespeichert werden.
Version | Beschreibung |
---|---|
8.1.0 |
Der Parameter dictionary erwartet nun eine
PSpell\Dictionary-Instanz; vorher wurde eine
Ressource erwartet.
|
Beispiel #1 pspell_add_to_personal()-Beispiel
<?php
$pspell_config = pspell_config_create("de");
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
$pspell = pspell_new_config($pspell_config);
pspell_add_to_personal($pspell, "Vlad");
pspell_save_wordlist($pspell);
?>
Hinweis:
Diese Funktion funktioniert nur mit pspell .11.2 und aspell .32.5 oder höher.