array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.pspell-config-personal.php', 1 => 'pspell_config_personal', ), 'up' => array ( 0 => 'ref.pspell.php', 1 => 'Pspell İşlevleri', ), 'prev' => array ( 0 => 'function.pspell-config-mode.php', 1 => 'pspell_config_mode', ), 'next' => array ( 0 => 'function.pspell-config-repl.php', 1 => 'pspell_config_repl', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/pspell/functions/pspell-config-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_config_personal — Set a file that contains personal wordlist
Set a file that contains personal wordlist. The personal wordlist will be loaded and used in addition to the standard one after you call pspell_new_config(). The file is also the file where pspell_save_wordlist() will save personal wordlist to.
pspell_config_personal() should be used on a config before calling pspell_new_config().
config
PSpell\Config örneği.
filename
The personal wordlist. If the file does not exist, it will be created. The file should be writable by whoever PHP runs as (e.g. nobody).
Sürüm: | Açıklama |
---|---|
8.1.0 |
The config parameter expects an
PSpell\Config
instance now; previously, a resource was expected.
|
Örnek 1 pspell_config_personal()
<?php
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
$pspell = pspell_new_config($pspell_config);
pspell_check($pspell, "thecat");
?>
Bilginize:
This function will not work unless you have pspell .11.2 and aspell .32.5 or later.